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 00e11bf commit 3ee22dd
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 3ee22dd

Please sign in to comment.