Fixed energy drain issue with laser

This commit is contained in:
Robert S 2014-05-08 08:21:42 -04:00
parent dc3bd53e18
commit 2300100bbd

View file

@ -197,7 +197,10 @@ public class ItemMiningLaser extends ItemEnergyTool
miningMap.remove(player);
}
if (this.energyUsedMap.containsKey(player))
{
discharge(stack, this.energyUsedMap.get(player), true);
this.energyUsedMap.remove(player);
}
}
@Override