Intentionally burning seaweed->soda ash will now stop at specified Make-X

This commit is contained in:
downthecrop
2022-06-16 23:20:07 +00:00
committed by Ryan
parent 01639d0e61
commit 8d98fbfd57
2 changed files with 6 additions and 2 deletions
@@ -30,8 +30,12 @@ public class IntentionalBurnPulse extends StandardCookingPulse {
} }
if(cook(player,null,false,initial,product)) { if(cook(player,null,false,initial,product)) {
amount--; amount--;
} else {
return true;
} }
return amount < 1; // we are always one off a normal cooking pulse because
// the first tick is handled outside of this class.
return amount <= 1;
} }
@Override @Override
@@ -53,7 +53,7 @@ public class StandardCookingPulse extends Pulse {
@Override @Override
public boolean pulse() { public boolean pulse() {
if (!checkRequirements()) { if (amount < 1 || !checkRequirements()) {
return true; return true;
} }
return reward(); return reward();