mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 12:19:58 +00:00
fix world memory leak without breaking stuff (hopefully)
This commit is contained in:
1 parent
47a2b61505
commit
baf333a8ca
1 file changed
+4
-1
@@ -30,8 +30,11 @@ object MultipartEventHandler {
|
||||
@SubscribeEvent
|
||||
def worldUnLoad(event: WorldEvent.Unload) {
|
||||
MultipartSPH.onWorldUnload(event.world)
|
||||
if (event.world.isRemote)
|
||||
if (event.world.isRemote) {
|
||||
TileCache.clear()
|
||||
} else {
|
||||
MultipartSaveLoad.loadingWorld = null
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
||||
Reference in new issue
Block a user