Update world leak patch to 1.18
This commit is contained in:
parent
fa8d83a21a
commit
ed0460747c
|
|
@ -32,7 +32,7 @@ public class MinecraftMixin {
|
||||||
}
|
}
|
||||||
this.level.getChunkSource().lightEngine = new LevelLightEngine(this.level.getChunkSource(), false, false);
|
this.level.getChunkSource().lightEngine = new LevelLightEngine(this.level.getChunkSource(), false, false);
|
||||||
// clear BE list otherwise they will hold chunks
|
// clear BE list otherwise they will hold chunks
|
||||||
this.level.blockEntityList.clear();
|
this.level.blockEntityTickers.clear();
|
||||||
} catch(RuntimeException e) {
|
} catch(RuntimeException e) {
|
||||||
ModernFix.LOGGER.error("Exception clearing level data", e);
|
ModernFix.LOGGER.error("Exception clearing level data", e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ mutable field net/minecraft/client/multiplayer/ClientChunkCache lightEngine Lnet
|
||||||
accessible class net/minecraft/client/multiplayer/ClientChunkCache$Storage
|
accessible class net/minecraft/client/multiplayer/ClientChunkCache$Storage
|
||||||
accessible field net/minecraft/client/multiplayer/ClientChunkCache$Storage chunks Ljava/util/concurrent/atomic/AtomicReferenceArray;
|
accessible field net/minecraft/client/multiplayer/ClientChunkCache$Storage chunks Ljava/util/concurrent/atomic/AtomicReferenceArray;
|
||||||
|
|
||||||
|
accessible field net/minecraft/world/level/Level blockEntityTickers Ljava/util/List;
|
||||||
|
|
||||||
accessible class net/minecraft/client/renderer/RenderType$CompositeRenderType
|
accessible class net/minecraft/client/renderer/RenderType$CompositeRenderType
|
||||||
accessible method net/minecraft/nbt/CompoundTag <init> (Ljava/util/Map;)V
|
accessible method net/minecraft/nbt/CompoundTag <init> (Ljava/util/Map;)V
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user