v0.7.2: fixed issues with wand charging when recharging large amounts
This commit is contained in:
parent
2b867c98c2
commit
0c0e831015
|
@ -461,12 +461,16 @@ public abstract class Wand extends Item {
|
||||||
if (curCharges < maxCharges)
|
if (curCharges < maxCharges)
|
||||||
recharge();
|
recharge();
|
||||||
|
|
||||||
if (partialCharge >= 1 && curCharges < maxCharges) {
|
while (partialCharge >= 1 && curCharges < maxCharges) {
|
||||||
partialCharge--;
|
partialCharge--;
|
||||||
curCharges++;
|
curCharges++;
|
||||||
updateQuickslot();
|
updateQuickslot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (curCharges == maxCharges){
|
||||||
|
partialCharge = 0;
|
||||||
|
}
|
||||||
|
|
||||||
spend( TICK );
|
spend( TICK );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user