Load logger in iOS

This commit is contained in:
Anuken
2023-05-19 12:29:53 -04:00
parent 4a53a80b21
commit 1f85d0d24f
3 changed files with 4 additions and 7 deletions

View File

@@ -1000,12 +1000,9 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
* @param todump Item to dump. Can be null to dump anything.
*/
public boolean dump(Item todump){
if(!block.hasItems || items.total() == 0 || (todump != null && !items.has(todump))) return false;
if(!block.hasItems || items.total() == 0 || proximity.size == 0 || (todump != null && !items.has(todump))) return false;
int dump = this.cdump;
if(proximity.size == 0) return false;
var allItems = content.items();
int itemSize = allItems.size;
Item[] itemArray = allItems.items;
@@ -1714,8 +1711,6 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
}
}
//TODO probably should not have a shouldConsume() check? should you even *use* consValid?
public void consume(){
for(Consume cons : block.consumers){
cons.trigger(self());