Fix nms chunk reference

This commit is contained in:
dordsor21 2021-08-17 22:43:58 +01:00
parent b8c9ae2b0b
commit 252d6a2866
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -100,7 +100,7 @@ public class ChunkListener implements Listener {
this.mustSave = classChunk.getField("mustNotSave"); this.mustSave = classChunk.getField("mustNotSave");
} }
} else { } else {
RefClass classChunk = getRefClass("net.minecraft.world.level.chunk"); RefClass classChunk = getRefClass("net.minecraft.world.level.chunk.Chunk");
this.mustSave = classChunk.getField("mustNotSave"); this.mustSave = classChunk.getField("mustNotSave");
} }
} catch (NoSuchFieldException e) { } catch (NoSuchFieldException e) {