Skip to content

Commit

Permalink
Fix biome buffer checking wrong coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
Moulberry committed Jun 5, 2024
1 parent af26f1c commit 752b8f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ private void applyBiomeBuffer(ServerPlayer player, MinecraftServer server, Biome
PalettedContainer<Holder<Biome>> container = (PalettedContainer<Holder<Biome>>) 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);
Expand Down

0 comments on commit 752b8f1

Please sign in to comment.