From 752b8f16388263dc77d7772525180e9e46fc02d4 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Thu, 6 Jun 2024 04:35:19 +0800 Subject: [PATCH] Fix biome buffer checking wrong coordinates --- .../moulberry/axiom/packet/SetBlockBufferPacketListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moulberry/axiom/packet/SetBlockBufferPacketListener.java b/src/main/java/com/moulberry/axiom/packet/SetBlockBufferPacketListener.java index 518b1b6..baacf54 100644 --- a/src/main/java/com/moulberry/axiom/packet/SetBlockBufferPacketListener.java +++ b/src/main/java/com/moulberry/axiom/packet/SetBlockBufferPacketListener.java @@ -358,7 +358,7 @@ public class SetBlockBufferPacketListener { PalettedContainer> container = (PalettedContainer>) section.getBiomes(); if (!Integration.canPlaceBlock(player.getBukkitEntity(), - new Location(player.getBukkitEntity().getWorld(), x+1, y+1, z+1))) return; + new Location(player.getBukkitEntity().getWorld(), (x<<2)+1, (y<<2)+1, (z<<2)+1))) return; container.set(x & 3, y & 3, z & 3, holder.get()); changedChunks.add(chunk);