From d63d0def5ad30d8547d98cc90f162f0784fa673b Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Tue, 12 May 2020 15:59:28 -0400 Subject: [PATCH] Break for loop in GeyserBukkitBlockPlaceListener when a player is found (#538) No need to keep searching when a player is found. --- .../platform/bukkit/world/GeyserBukkitBlockPlaceListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap/bukkit/src/main/java/org/geysermc/platform/bukkit/world/GeyserBukkitBlockPlaceListener.java b/bootstrap/bukkit/src/main/java/org/geysermc/platform/bukkit/world/GeyserBukkitBlockPlaceListener.java index d4b57145a..877e66463 100644 --- a/bootstrap/bukkit/src/main/java/org/geysermc/platform/bukkit/world/GeyserBukkitBlockPlaceListener.java +++ b/bootstrap/bukkit/src/main/java/org/geysermc/platform/bukkit/world/GeyserBukkitBlockPlaceListener.java @@ -56,6 +56,7 @@ public class GeyserBukkitBlockPlaceListener implements Listener { session.sendUpstreamPacket(placeBlockSoundPacket); session.setLastBlockPlacePosition(null); session.setLastBlockPlacedId(null); + break; } } }