if (callAbilityChangeEvent().isCancelled()) {
mode = old;
}
}
if (updateClient) {
holder.getNetwork().callProtocolEvent(new PlayerGameStateEvent((Player) holder, PlayerGameStateMessage.CHANGE_GAME_MODE, mode), (Player) getOwner());
}
}
getData().put(VanillaData.GAMEMODE, mode);
}