Minecraft mod: What is that funky smell in my backpack? Food spoils over time unless preserved. Configure any item to rot, any container to preserve items.
The config says we can rot items into nothing by leaving the "rotten id" blank. When such an item is loaded before it rots, it persists beyond its rotting time. When such an item is loaded after it rots, a server will crash.
[11:09:47] [Server thread/ERROR] [foodfunk]: An error occured while attempting to rot inventory:
java.lang.NullPointerException: The validated object is null
at org.apache.commons.lang3.Validate.notNull(Validate.java:225) ~[minecraft_server.1.12.2.jar:?]
at org.apache.commons.lang3.Validate.notNull(Validate.java:206) ~[minecraft_server.1.12.2.jar:?]
at net.minecraft.util.NonNullList.set(SourceFile:49) ~[fi.class:?]
at net.minecraft.entity.player.InventoryPlayer.func_70299_a(InventoryPlayer.java:573) ~[aec.class:?]
at com.wumple.foodfunk.RotHandler.rotInvo(RotHandler.java:128) [RotHandler.class:?]
at com.wumple.foodfunk.EventManager.onEntityJoinWorld(EventManager.java:44) [EventManager.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_42_EventManager_onEntityJoinWorld_EntityJoinWorldEvent.invoke(.dynamic) [?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
at net.minecraft.world.World.func_72838_d(World.java:1205) [amu.class:?]
at net.minecraft.world.WorldServer.func_72838_d(WorldServer.java:1058) [oo.class:?]
at net.minecraft.server.management.PlayerList.func_72377_c(PlayerList.java:376) [pl.class:?]
at net.minecraft.server.management.PlayerList.initializeConnectionToPlayer(PlayerList.java:165) [pl.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:256) [NetworkDispatcher.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.access$100(NetworkDispatcher.java:72) [NetworkDispatcher.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:205) [NetworkDispatcher$1.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:285) [gw.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180) [oz.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:790) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
The config says we can rot items into nothing by leaving the "rotten id" blank. When such an item is loaded before it rots, it persists beyond its rotting time. When such an item is loaded after it rots, a server will crash.