mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-07 00:33:22 +08:00
perf: size cannot be negative
This commit is contained in:
parent
4b03304cdc
commit
f01da54eaa
@ -299,7 +299,7 @@ public final class ForgingManager extends BasePlayerManager {
|
|||||||
// Determine if sending an update is necessary.
|
// Determine if sending an update is necessary.
|
||||||
// We only send an update if there are forges in the forge queue
|
// We only send an update if there are forges in the forge queue
|
||||||
// that have changed since the last notification.
|
// that have changed since the last notification.
|
||||||
if (this.player.getActiveForges().size() <= 0) {
|
if (this.player.getActiveForges().size() == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ public final class TeamManager extends BasePlayerDataManager {
|
|||||||
|
|
||||||
public void updateTeamEntities(BasePacket responsePacket) {
|
public void updateTeamEntities(BasePacket responsePacket) {
|
||||||
// Sanity check - Should never happen
|
// Sanity check - Should never happen
|
||||||
if (this.getCurrentTeamInfo().getAvatars().size() <= 0) {
|
if (this.getCurrentTeamInfo().getAvatars().size() == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user