adjusted Iron Golem animation viewer calculation to account for block distance

This commit is contained in:
2025-10-12 23:07:09 +02:00
parent 4be3e528b1
commit 713561bf07

View File

@@ -41,7 +41,7 @@ public class IronGolemAnimation extends Appliance {
new BlockChange(golemCenterBlock.getRelative(BlockFace.UP), headBlockData) new BlockChange(golemCenterBlock.getRelative(BlockFace.UP), headBlockData)
); );
Collection<Player> viewers = golemLocation.getNearbyPlayers(golemLocation.getWorld().getViewDistance()); Collection<Player> viewers = golemLocation.getNearbyPlayers(golemLocation.getWorld().getViewDistance() * 16);
BiConsumer<Location, BlockData> changeBlockForViewers = (location, blockData) -> { BiConsumer<Location, BlockData> changeBlockForViewers = (location, blockData) -> {
viewers.forEach(player -> player.sendBlockChange(location, blockData)); viewers.forEach(player -> player.sendBlockChange(location, blockData));
golem.getWorld().playSound( golem.getWorld().playSound(