prefer isEmpty over length() == 0
This commit is contained in:
@@ -93,7 +93,7 @@ public class ContainerCraftingStatus extends ContainerCraftingCPU
|
||||
this.sendCPUs();
|
||||
}
|
||||
|
||||
this.noCPU = this.cpus.size() == 0;
|
||||
this.noCPU = this.cpus.isEmpty();
|
||||
|
||||
super.detectAndSendChanges();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user