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)
|
||||
recharge();
|
||||
|
||||
if (partialCharge >= 1 && curCharges < maxCharges) {
|
||||
while (partialCharge >= 1 && curCharges < maxCharges) {
|
||||
partialCharge--;
|
||||
curCharges++;
|
||||
updateQuickslot();
|
||||
}
|
||||
|
||||
if (curCharges == maxCharges){
|
||||
partialCharge = 0;
|
||||
}
|
||||
|
||||
spend( TICK );
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user