removed testing toggle for mount

changed item gadget slot from 2 to 3
This commit is contained in:
Chiss 2013-10-27 02:22:38 +11:00
parent f838452b5c
commit 55de25fded
2 changed files with 2 additions and 18 deletions

View File

@ -38,7 +38,7 @@ public abstract class ItemGadget extends Gadget
{ {
Manager.RemoveItem(player); Manager.RemoveItem(player);
player.getInventory().setItem(2, ItemStackFactory.Instance.CreateStack(_material, _data, 1, F.item(GetName()))); player.getInventory().setItem(3, ItemStackFactory.Instance.CreateStack(_material, _data, 1, F.item(GetName())));
_active.add(player); _active.add(player);
@ -47,7 +47,7 @@ public abstract class ItemGadget extends Gadget
public void RemoveItem(Player player) public void RemoveItem(Player player)
{ {
player.getInventory().setItem(2, null); player.getInventory().setItem(3, null);
_active.remove(player); _active.remove(player);

View File

@ -65,20 +65,4 @@ public class Undead extends Mount
} }
} }
} }
@EventHandler
public void Toggle(PlayerToggleSneakEvent event)
{
if (event.getPlayer().isSneaking())
return;
if (IsActive(event.getPlayer()))
{
this.Disable(event.getPlayer());
}
else
{
this.Enable(event.getPlayer());
}
}
} }