mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:53:20 +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.
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user