Fixed energy drain issue with laser
This commit is contained in:
parent
dc3bd53e18
commit
2300100bbd
1 changed files with 3 additions and 0 deletions
|
@ -197,7 +197,10 @@ public class ItemMiningLaser extends ItemEnergyTool
|
||||||
miningMap.remove(player);
|
miningMap.remove(player);
|
||||||
}
|
}
|
||||||
if (this.energyUsedMap.containsKey(player))
|
if (this.energyUsedMap.containsKey(player))
|
||||||
|
{
|
||||||
discharge(stack, this.energyUsedMap.get(player), true);
|
discharge(stack, this.energyUsedMap.get(player), true);
|
||||||
|
this.energyUsedMap.remove(player);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue