This commit is contained in:
gnembon committed 2021-09-18 08:46:27 -03:00
1 parent 70754dbfe8
commit bc175509a2
24 files changed
+155 -113

No files matched your search

@@ -118,13 +118,12 @@ public class BlockValue extends Value
if (world != null && pos != null)
{
BlockEntity be = getBlockEntity(world, pos);
NbtCompound tag = new NbtCompound();
if (be == null)
{
data = tag;
data = new NbtCompound();
return null;
}
data = be.writeNbt(tag);
data = be.method_38244(); // toNBT
return data;
}
return null;
@@ -763,7 +763,7 @@ public class EntityValue extends Value
ServerPlayerInteractionManagerInterface manager = (ServerPlayerInteractionManagerInterface) (((ServerPlayerEntity) e).interactionManager);
BlockPos pos = manager.getCurrentBreakingBlock();
if (pos == null) return Value.NULL;
return new BlockValue(null, ((ServerPlayerEntity) e).getServerWorld(), pos);
return new BlockValue(null, (ServerWorld) e.world, pos);
}
return Value.NULL;
});