Changes to Blast Mining method calls.

This commit is contained in:
GJ 2012-03-02 12:37:39 -05:00
parent e9dae0d633
commit 5a8b9fc344
2 changed files with 3 additions and 2 deletions

View File

@ -167,7 +167,7 @@ public class mcEntityListener implements Listener
if(plugin.misc.tntTracker.containsKey(location)) if(plugin.misc.tntTracker.containsKey(location))
{ {
Player player = plugin.misc.tntTracker.get(location); Player player = plugin.misc.tntTracker.get(location);
BlastMining.biggerBombs(Users.getProfile(player).getSkillLevel(SkillType.MINING), event); BlastMining.biggerBombs(player, event);
} }
} }
} }

View File

@ -199,8 +199,9 @@ public class BlastMining{
* Increases radius of explosion by 3 at 750. * Increases radius of explosion by 3 at 750.
* Increases radius of explosion by 4 at 1000. * Increases radius of explosion by 4 at 1000.
*/ */
public static void biggerBombs(int skillLevel, ExplosionPrimeEvent event) public static void biggerBombs(Player player, ExplosionPrimeEvent event)
{ {
int skillLevel = Users.getProfile(player).getSkillLevel(SkillType.MINING);
float radius = event.getRadius(); float radius = event.getRadius();
if(skillLevel < 250) if(skillLevel < 250)
return; return;