fix: последствия merge, не отловленные при тестировании(!)
This commit is contained in:
@@ -62,8 +62,10 @@ public class AnvilBlock implements Block {
|
||||
(chunkSection.getParent().getZ() << 4) + location.getZ()
|
||||
);
|
||||
|
||||
compoundTag.getValue().remove("Items");
|
||||
compoundTag.getValue().remove("Lock");
|
||||
if (compoundTag != null) {
|
||||
compoundTag.getValue().remove("Items");
|
||||
compoundTag.getValue().remove("Lock");
|
||||
}
|
||||
|
||||
return compoundTag;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ public class AnvilChunk implements Chunk {
|
||||
|
||||
@Override
|
||||
public Biome getBiome(int x, int z) {
|
||||
return Biome.getById( biomes.get( z << 4 | x) & 255 );
|
||||
return Biome.getById(biomes.get((z >> 4) << 4 | (x >> 4)) & 255);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user