mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Change priority of sheep shearing
Cleanup
This commit is contained in:
parent
8f3dce4ee9
commit
d0d9868b5f
@ -3,13 +3,11 @@ package com.gmail.nossr50.datatypes.treasure;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class FishingTreasure extends Treasure {
|
||||
|
||||
private int maxLevel;
|
||||
|
||||
public FishingTreasure(ItemStack drop, int xp, Double dropChance, int dropLevel, int maxLevel) {
|
||||
super(drop, xp, dropChance, dropLevel);
|
||||
this.setMaxLevel(maxLevel);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public int getMaxLevel() {
|
||||
@ -19,5 +17,4 @@ public class FishingTreasure extends Treasure {
|
||||
public void setMaxLevel(int maxLevel) {
|
||||
this.maxLevel = maxLevel;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ public class mcPlayerListener implements Listener
|
||||
plugin = instance;
|
||||
}
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onSheepUndressing(PlayerShearEntityEvent event)
|
||||
{
|
||||
Player player = event.getPlayer();
|
||||
|
Loading…
Reference in New Issue
Block a user