Protect our hashmaps from bad people.

This commit is contained in:
GJ
2012-06-06 15:38:44 -04:00
parent e5d2ed4bb2
commit 290032646f
4 changed files with 70 additions and 11 deletions

View File

@ -296,7 +296,7 @@ public class BlastMining {
/* Create the TNT entity */
TNTPrimed tnt = player.getWorld().spawn(block.getLocation(), TNTPrimed.class);
plugin.tntTracker.put(tnt.getEntityId(), player);
plugin.addToTNTTracker(tnt.getEntityId(), player.getName());
tnt.setFuseTicks(0);
/* Disable the original one */