Intentionally burning seaweed->soda ash will now stop at specified Make-X
This commit is contained in:
@@ -30,8 +30,12 @@ public class IntentionalBurnPulse extends StandardCookingPulse {
|
||||
}
|
||||
if(cook(player,null,false,initial,product)) {
|
||||
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
|
||||
|
||||
@@ -53,7 +53,7 @@ public class StandardCookingPulse extends Pulse {
|
||||
|
||||
@Override
|
||||
public boolean pulse() {
|
||||
if (!checkRequirements()) {
|
||||
if (amount < 1 || !checkRequirements()) {
|
||||
return true;
|
||||
}
|
||||
return reward();
|
||||
|
||||
Reference in New Issue
Block a user