- 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.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockDamageEvent;
import org.bukkit.event.inventory.InventoryType;
public class SkillFixer implements Listener
@ -81,4 +82,13 @@ public class SkillFixer implements Listener
}
}
@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))
return;
if (_ent.getTicksLived() <= 2000)
if (_ent.getTicksLived() <= 40)
return;
if (!Host.IsAlive(player))