* Mana pool handling - Fixed bug where wrong playerId was used. Fixed that menu check state is the same for all GamePanles of client.

This commit is contained in:
LevelX2 2014-05-27 16:54:38 +02:00
parent 610c7d7462
commit c13f7a2115
7 changed files with 32 additions and 14 deletions

View file

@ -475,11 +475,11 @@ public class GameController implements GameCallback {
});
}
public void sendPlayerManaType(UUID userId, UUID playerId, final ManaType data) {
public void sendPlayerManaType(UUID userId, final UUID manaTypePlayerId, final ManaType data) {
sendMessage(userId, new Command() {
@Override
public void execute(UUID playerId) {
getGameSession(playerId).sendPlayerManaType(data, playerId);
getGameSession(playerId).sendPlayerManaType(data, manaTypePlayerId);
}
});
}