Incompatibility with EnderChests
Kir-Antipov opened this issue ยท 0 comments
Description
The "EnderChests" mod overlooks the possibility that block entities may have uninitialized fields, such as world
and cachedBlockState
, on various occasions, even during vanilla gameplay. It could be beneficial to incorporate safety checks for mods like this.
Log
java.lang.NullPointerException: Cannot read field "field_9236" because "world" is null
at shetiphian.enderchests.common.misc.ChestHelper.getChest(ChestHelper.java:63)
at shetiphian.enderchests.common.tileentity.TileEntityEnderChest.getChest(TileEntityEnderChest.java:230)
at shetiphian.enderchests.common.tileentity.TileEntityEnderChest.getInventory(TileEntityEnderChest.java:123)
at shetiphian.core.common.tileentity.IDetachedInventory.method_5439(IDetachedInventory.java:20)
at dev.kir.packedinventory.util.block.entity.BlockEntityUtil.getInventorySizeImpl(BlockEntityUtil.java:93)
at dev.kir.packedinventory.util.block.entity.BlockEntityUtil.getInventorySize(BlockEntityUtil.java:80)