Made laser gun dump energy cache when laser gun is not held by player
This commit is contained in:
parent
2300100bbd
commit
8f9ff1154e
1 changed files with 4 additions and 0 deletions
|
@ -76,6 +76,10 @@ public class ItemMiningLaser extends ItemEnergyTool
|
|||
{
|
||||
this.miningMap.remove(player);
|
||||
}
|
||||
if (this.energyUsedMap.containsKey(player))
|
||||
{
|
||||
this.energyUsedMap.remove(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue