mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 00:45:27 +01:00
Changes to Blast Mining method calls.
This commit is contained in:
parent
e9dae0d633
commit
5a8b9fc344
@ -167,7 +167,7 @@ public class mcEntityListener implements Listener
|
||||
if(plugin.misc.tntTracker.containsKey(location))
|
||||
{
|
||||
Player player = plugin.misc.tntTracker.get(location);
|
||||
BlastMining.biggerBombs(Users.getProfile(player).getSkillLevel(SkillType.MINING), event);
|
||||
BlastMining.biggerBombs(player, event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -199,8 +199,9 @@ public class BlastMining{
|
||||
* Increases radius of explosion by 3 at 750.
|
||||
* 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();
|
||||
if(skillLevel < 250)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user