TileConnectable.onChunkUnload can keep chunks loaded
mezz opened this issue ยท 3 comments
I am helping out a server which says chunks are being loaded all the time even without chunk loaders.
It seems like TileConnectable.onChunkUnload
is causing chunks to stay loaded because it is requesting a tile entity from a chunk that is unloading. I think this is contributing to their issue.
Hmmm. yeah for some reason, this tile listens to chunk unload and then calls "refreshNetwork"
This seems counter intuitive i dont know why it would do this. Maybe its meant to remove itself from the network?
Ill look into removing this and then load and unload chunks and see if anything breaks
@Override
public void onChunkUnload() {
try {
if (master != null && world.getTileEntity(master) instanceof TileMaster)
((TileMaster) world.getTileEntity(master)).refreshNetwork();
}
catch (Exception e) {
System.out.println("Error on unload");
e.printStackTrace();
}
}
There is now a config option to disable this ๐ https://minecraft.curseforge.com/projects/simple-storage-network/files/2524875