From 8f9ff1154e578c0f81f01306de453ecc86b62968 Mon Sep 17 00:00:00 2001 From: Robert S Date: Thu, 8 May 2014 08:52:19 -0400 Subject: [PATCH] Made laser gun dump energy cache when laser gun is not held by player --- .../electrical/laser/gun/ItemMiningLaser.java | 4 ++++ 1 file changed, 4 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 db6b8d52..31e2fb5f 100644 --- a/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java +++ b/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java @@ -76,6 +76,10 @@ public class ItemMiningLaser extends ItemEnergyTool { this.miningMap.remove(player); } + if (this.energyUsedMap.containsKey(player)) + { + this.energyUsedMap.remove(player); + } } } }