mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-09-22 13:01:12 +03:00
Bugfix: scaled crafters unable to dump fast enough (#12669)
This commit is contained in:
@@ -335,7 +335,10 @@ public class GenericCrafter extends Block{
|
||||
public void dumpOutputs(){
|
||||
if(outputItems != null && timer(timerDump, dumpTime / timeScale)){
|
||||
for(ItemStack output : outputItems){
|
||||
dump(output.item);
|
||||
int amount = Math.max(1, Mathf.round(scaleOutput(output.amount)));
|
||||
for(int i = 0; i < amount; i++){
|
||||
if(!dump(output.item)) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user