Fusion reactor consumes resources. Fixes #1551 (#1556)

Since resources are consumed during start up, they should also
be consumed when resetting the crafting cycle.
This commit is contained in:
Eric Chai 2018-06-23 11:40:56 -04:00 committed by drcrazy
parent 1de3fe5dc5
commit 52ff6699b4

View file

@ -259,6 +259,10 @@ public class TileFusionControlComputer extends TilePowerAcceptor
} }
if (this.validateReactorRecipe(this.currentRecipe)) { if (this.validateReactorRecipe(this.currentRecipe)) {
this.crafingTickTime = 0; this.crafingTickTime = 0;
this.decrStackSize(this.topStackSlot, this.currentRecipe.getTopInput().getCount());
if (!this.currentRecipe.getBottomInput().isEmpty()) {
this.decrStackSize(this.bottomStackSlot, this.currentRecipe.getBottomInput().getCount());
}
} else { } else {
this.resetCrafter(); this.resetCrafter();
} }