forked from 2009Scape/Server
Intentionally burning seaweed->soda ash will now stop at specified Make-X
This commit is contained in:
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)) {
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue