Fix spectator gui bug
This commit is contained in:
parent
3ceb0ff678
commit
b18ea22df4
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user