SpoutPlayer player = (SpoutPlayer) SpoutManager.getPlayerFromId(playerId);
if (player != null && player.isSpoutCraftEnabled()) {
if (getActivePopup() != null) {
if (getActivePopup().isDirty()) {
if (!getActivePopup().getType().isServerOnly()) {
player.sendImmediatePacket(new PacketWidget(getActivePopup(), getId()));
}
getActivePopup().setDirty(false);
}
getActivePopup().onTick();
}