From e3246134415902e0d4e721130f14203c9aaa4692 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);