add nullchecks on watchers

This commit is contained in:
Ingmar Goudt 2019-01-06 00:35:15 +01:00
parent 5cab28182d
commit 95a31759b5
53 changed files with 134 additions and 85 deletions

View file

@ -49,7 +49,7 @@ public class PlayerLostLifeWatcher extends Watcher {
}
}
public int getLiveLost(UUID playerId) {
public int getLifeLost(UUID playerId) {
return amountOfLifeLostThisTurn.getOrDefault(playerId, 0);
}
@ -64,7 +64,7 @@ public class PlayerLostLifeWatcher extends Watcher {
return amount;
}
public int getLiveLostLastTurn(UUID playerId) {
public int getLifeLostLastTurn(UUID playerId) {
return amountOfLifeLostLastTurn.getOrDefault(playerId, 0);
}