1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-22 08:19:20 +00:00

Break for loop in GeyserBukkitBlockPlaceListener when a player is found (#538)

No need to keep searching when a player is found.
This commit is contained in:
Camotoy
2020-05-12 15:59:28 -04:00
committed by GitHub
parent 0c60af66b2
commit d63d0def5a

View File

@@ -56,6 +56,7 @@ public class GeyserBukkitBlockPlaceListener implements Listener {
session.sendUpstreamPacket(placeBlockSoundPacket);
session.setLastBlockPlacePosition(null);
session.setLastBlockPlacedId(null);
break;
}
}
}