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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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