Shows animation to players within 16 blocks
All checks were successful
KnarCraft/BlacksmithVisuals/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2024-07-29 12:45:29 +02:00
parent f574d98ba5
commit 70759bc0e3

View File

@ -93,7 +93,7 @@ public class BlacksmithListener implements Listener {
return; return;
} }
List<Entity> nearby = event.getNpc().getEntity().getNearbyEntities(10, 10, 5); List<Entity> nearby = event.getNpc().getEntity().getNearbyEntities(16, 16, 5);
nearby.removeIf((entity) -> !(entity instanceof Player)); nearby.removeIf((entity) -> !(entity instanceof Player));
this.playWorkSound(event.getNpc().getEntity()); this.playWorkSound(event.getNpc().getEntity());