Fix spectator gui bug

This commit is contained in:
Shaun Bennett 2015-03-12 15:50:46 -04:00
parent 3ceb0ff678
commit b18ea22df4
2 changed files with 1 additions and 10 deletions

View File

@ -1197,6 +1197,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
//Set Spec State
player.setVelocity(new Vector(0,1,0));
// player.setGameMode(GameMode.CREATIVE); //
player.setAllowFlight(true);
player.setFlying(true);
player.setFlySpeed(0.1f);

View File

@ -270,14 +270,4 @@ public class CompassAddon extends MiniPlugin
_spectatorShop.update();
}
// This prevents other modules from cancelling clicks in
@EventHandler(priority = EventPriority.HIGH)
public void onInventoryClick(InventoryClickEvent event)
{
if (event.getClickedInventory() != null && event.getWhoClicked() != null && Manager.isSpectator(event.getWhoClicked()) && event.getClickedInventory().getTitle().equals("Spectator Menu"))
{
event.setCancelled(false);
}
}
}