mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-13 02:11:08 -07:00
Allow 0 items (#8389)
This commit is contained in:
parent
5c05c9f1d1
commit
ee47d8a20a
1 changed files with 1 additions and 1 deletions
|
|
@ -1990,7 +1990,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||
if(items.get(item) != amount){
|
||||
if(items.get(item) < amount){
|
||||
handleStack(item, acceptStack(item, amount - items.get(item), null), null);
|
||||
}else if(amount > 0){
|
||||
}else if(amount >= 0){
|
||||
removeStack(item, items.get(item) - amount);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue