Server crashes because of Inventory Connector
TheOneIllumic opened this issue ยท 0 comments
Hello,
whenever a player joins my server and a inventory connector block is loaded in, the server crashes in 1 out of 5 times.
We didn't have this issue before and are using the same map with your mod since mc version 1.19.
Here is the error:
Description: Ticking block entity
java.lang.NullPointerException: Cannot invoke "net.fabricmc.fabric.api.lookup.v1.block.BlockApiCache.getWorld()" because "this.cache" is null
at com.tom.storagemod.inventory.PlatformInventoryAccess$BlockInventoryAccess.get(PlatformInventoryAccess.java:63)
at com.tom.storagemod.inventory.PlatformInventoryAccess$BlockInventoryAccess.getRootHandler(PlatformInventoryAccess.java:103)
at com.tom.storagemod.inventory.MultiInventoryAccess.build(MultiInventoryAccess.java:52)
at com.tom.storagemod.block.entity.InventoryConnectorBlockEntity.updateServer(InventoryConnectorBlockEntity.java:52)
at com.tom.storagemod.util.TickerUtil.lambda$createTicker$1(TickerUtil.java:10)
at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:683)
at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:737)
at net.minecraft.class_1937.method_18471(class_1937.java:488)
at net.minecraft.class_3218.method_18765(class_3218.java:413)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1021)
at net.minecraft.class_3176.method_3813(class_3176.java:299)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281)
at java.base/java.lang.Thread.run(Thread.java:1583)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at com.tom.storagemod.inventory.PlatformInventoryAccess$BlockInventoryAccess.get(PlatformInventoryAccess.java:63)
at com.tom.storagemod.inventory.PlatformInventoryAccess$BlockInventoryAccess.getRootHandler(PlatformInventoryAccess.java:103)
at com.tom.storagemod.inventory.MultiInventoryAccess.build(MultiInventoryAccess.java:52)
at com.tom.storagemod.block.entity.InventoryConnectorBlockEntity.updateServer(InventoryConnectorBlockEntity.java:52)
at com.tom.storagemod.util.TickerUtil.lambda$createTicker$1(TickerUtil.java:10)
at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:683)
at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:737)
at net.minecraft.class_1937.method_18471(class_1937.java:488)
-- Block entity being ticked --
Details:
Name: toms_storage:inventory_connector // com.tom.storagemod.block.entity.InventoryConnectorBlockEntity
Block: Block{toms_storage:inventory_connector}
Block location: World: (-409,67,-73), Section: (at 7,3,7 in -26,4,-5; chunk contains blocks -416,-64,-80 to -401,319,-65), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,-64,-512 to -1,319,-1)
Block: Block{toms_storage:inventory_connector}
Block location: World: (-409,67,-73), Section: (at 7,3,7 in -26,4,-5; chunk contains blocks -416,-64,-80 to -401,319,-65), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,-64,-512 to -1,319,-1)
Stacktrace:
at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:683)
at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:737)
at net.minecraft.class_1937.method_18471(class_1937.java:488)
at net.minecraft.class_3218.method_18765(class_3218.java:413)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1021)
at net.minecraft.class_3176.method_3813(class_3176.java:299)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281)
at java.base/java.lang.Thread.run(Thread.java:1583)
Any help would be appreciated. We are using fabric loader 0.16.0 and indium is also installed.