forked from External/mage
add nullchecks on watchers
This commit is contained in:
parent
5cab28182d
commit
95a31759b5
53 changed files with 134 additions and 85 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue