case PROXY:
case SERVER:
if (getHuman() == null || getHuman().isSurvival()) {
dropCursorItem();
}
getPlayer().getNetwork().callProtocolEvent(new WindowCloseEvent(this), getPlayer());
break;
case CLIENT:
((Client) VanillaPlugin.getInstance().getEngine()).getScreenStack().closeScreen(popup);
// TODO: Send close packet
break;