From 0c5e4c09531e6290b255af83e01de3f179f5a83f Mon Sep 17 00:00:00 2001 From: GPSolo Date: Thu, 17 Sep 2026 12:45:36 -0600 Subject: [PATCH] Use Octree.SIZEOF_X16 for section memory size --- .../java/baritone/process/elytra/NetherPathfinderContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/process/elytra/NetherPathfinderContext.java b/src/main/java/baritone/process/elytra/NetherPathfinderContext.java index 69e0a181b7..7cad987018 100644 --- a/src/main/java/baritone/process/elytra/NetherPathfinderContext.java +++ b/src/main/java/baritone/process/elytra/NetherPathfinderContext.java @@ -321,7 +321,7 @@ private static void writeChunkData(LevelChunk chunk, long chunkPtr) { else if (bs == Blocks.BROWN_MUSHROOM.defaultBlockState()) brownMushroomId = i; } if (airId == -1 & caveAirId == -1) { - final long bytesInSection = SECTION_SIZE / 8; + final long bytesInSection = Octree.SIZEOF_X16; UNSAFE.setMemory(chunkPtr + (y0 * bytesInSection), bytesInSection, (byte) 0xFF); continue; }