mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-14 19:56:19 +00:00
getBlockState -> getBlockEntity
This commit is contained in:
@@ -38,7 +38,7 @@ public class BufferedLootApplication implements BufferedItem {
|
||||
@Override
|
||||
public void paste(Vector3 origin, WritableWorld world) {
|
||||
try {
|
||||
BlockEntity data = world.getBlockState(origin);
|
||||
BlockEntity data = world.getBlockEntity(origin);
|
||||
if(!(data instanceof Container container)) {
|
||||
LOGGER.error("Failed to place loot at {}; block {} is not a container", origin, data);
|
||||
return;
|
||||
|
||||
@@ -27,7 +27,7 @@ public class BufferedStateManipulator implements BufferedItem {
|
||||
@Override
|
||||
public void paste(Vector3 origin, WritableWorld world) {
|
||||
try {
|
||||
BlockEntity state = world.getBlockState(origin);
|
||||
BlockEntity state = world.getBlockEntity(origin);
|
||||
state.applyState(data);
|
||||
state.update(false);
|
||||
} catch(Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user