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)) {
|
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user