- More Bugfixes

This commit is contained in:
AlexTheCoder 2015-10-28 18:16:52 -04:00
parent 0ab3213b7b
commit cf26541461
2 changed files with 11 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority; import org.bukkit.event.EventPriority;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockDamageEvent;
import org.bukkit.event.inventory.InventoryType; import org.bukkit.event.inventory.InventoryType;
public class SkillFixer implements Listener public class SkillFixer implements Listener
@ -80,5 +81,14 @@ public class SkillFixer implements Listener
skill.Reset(player); skill.Reset(player);
} }
} }
@EventHandler
public void fixAxe(BlockDamageEvent event)
{
if (!_host.IsLive())
return;
event.setCancelled(true);
}
} }

View File

@ -74,7 +74,7 @@ public class Emerald
if (!_ent.equals(item)) if (!_ent.equals(item))
return; return;
if (_ent.getTicksLived() <= 2000) if (_ent.getTicksLived() <= 40)
return; return;
if (!Host.IsAlive(player)) if (!Host.IsAlive(player))