I'm trying to create a very simple tile entity that has a INT NBT data for testing.
Saving and loading this TE works fine on single player and NBT is properly showing up. However, whenever I try to do the same in a dedicated server, the NBT data always resets whenever the chunks are unloaded(moving far away or leaving the game while server is running)
I have getUpdatePacket, onDataPacket, handleUpdateTag, getUpdateTag overridden, and markDirty, notifyBlockUpdate is called.
I've searched everywhere but couldn't find a solution please help me.
Tile Entity
Block