Fixed very critical woopsie in ordering

This commit is contained in:
mcrcortex
2024-02-09 22:52:26 +10:00
parent e932273240
commit c1460b649c

View File

@@ -197,7 +197,7 @@ public class Mapper {
if (blockId == AIR) {//Dont care about biome for air if (blockId == AIR) {//Dont care about biome for air
return Byte.toUnsignedLong(light)<<56; return Byte.toUnsignedLong(light)<<56;
} }
return (Byte.toUnsignedLong(light)<<56)|(Integer.toUnsignedLong(blockId) << 47)|(Integer.toUnsignedLong(biomeId)<<27); return (Byte.toUnsignedLong(light)<<56)|(Integer.toUnsignedLong(biomeId) << 47)|(Integer.toUnsignedLong(blockId)<<27);
} }
//TODO: fixme: synchronize access to this.blockId2stateEntry //TODO: fixme: synchronize access to this.blockId2stateEntry