perf: size cannot be negative

This commit is contained in:
Breno A. 2024-06-09 09:57:41 -03:00
parent 4b03304cdc
commit f01da54eaa
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ public final class ForgingManager extends BasePlayerManager {
// Determine if sending an update is necessary.
// We only send an update if there are forges in the forge queue
// that have changed since the last notification.
if (this.player.getActiveForges().size() <= 0) {
if (this.player.getActiveForges().size() == 0) {
return;
}

View File

@ -363,7 +363,7 @@ public final class TeamManager extends BasePlayerDataManager {
public void updateTeamEntities(BasePacket responsePacket) {
// Sanity check - Should never happen
if (this.getCurrentTeamInfo().getAvatars().size() <= 0) {
if (this.getCurrentTeamInfo().getAvatars().size() == 0) {
return;
}