player.sendImmediatePacket(new PacketWidget(screen, screen.getId()));
}
}
private void handleScreenClose(SpoutPlayer player, ScreenCloseEvent e, boolean update) {
PopupScreen p = player.getMainScreen().getActivePopup();
if (update && p != null){
p.onScreenClose(e);
}
if (e.isCancelled()) {
handleScreenCloseCancelled(player, e, false);
return;
}
player.getMainScreen().closePopup();
if (player.getItemOnCursor() != null && p != null) {
p.handleItemOnCursor(player.getItemOnCursor());
player.setItemOnCursor(null);
}
}