From 2300100bbd8fe01c7d151ffbd1143b339fe06303 Mon Sep 17 00:00:00 2001 From: Robert S Date: Thu, 8 May 2014 08:21:42 -0400 Subject: [PATCH] Fixed energy drain issue with laser --- .../electrical/laser/gun/ItemMiningLaser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java b/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java index a91bd085..db6b8d52 100644 --- a/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java +++ b/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java @@ -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