Botania

Botania

133M Downloads

Using dormant chunk cache can cause some TileEntities to not function correctly

bs2609 opened this issue ยท 1 comments

commented

See MinecraftForge/MinecraftForge#3325 for additional details.

The following Botania tile entities are affected:

  • TilePool
  • TileSpreader

The reason these are affected by the dormant chunk cache being used is that they all override onChunkUnload() in order to call invalidate() on themselves. With dormant chunks, they will be invalidated when chunks unload, but will not be revalidated when a dormant chunk is reloaded, causing them to function incorrectly.

The solution is to also override onLoad() in order to call validate() there.

Note: This should fix things in Forge 2290+, before that onLoad() won't be called from the location needed for this to have an effect. Overriding it in earlier versions will be harmless, but ineffective.

commented

fixed by just not calling invalidate. there really isn't any reason for it to, and the objective is to just remove it from the network.