Skip to content

Commit 5708eb7

Browse files
authored
fix: correct y index addition in biome history (#2797)
1 parent 4fe9c6b commit 5708eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worldedit-core/src/main/java/com/fastasyncworldedit/core/history/changeset/FaweStreamChangeSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public void addBiomeChange(int bx, int by, int bz, BiomeType from, BiomeType to)
353353
os.write((byte) (z));
354354
// only need to store biomes in the 4x4x4 chunks so only need one byte for y still (signed byte -128 -> 127)
355355
// means -512 -> 508. Add 128 to avoid negative value casting.
356-
os.write((byte) (y + 32));
356+
os.write((byte) (y + 128));
357357
os.writeVarInt(from.getInternalId());
358358
os.writeVarInt(to.getInternalId());
359359
} catch (IOException e) {

0 commit comments

Comments
 (0)