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
1 changed files with 1 additions and 0 deletions

View File

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