forked from External/mage
latest
This commit is contained in:
parent
efdceacaf6
commit
a9a0075768
15 changed files with 257 additions and 259 deletions
|
|
@ -72,8 +72,9 @@ public class PlayerFactory {
|
|||
return playerTypes.keySet();
|
||||
}
|
||||
|
||||
public void addPlayerType(String name, Class gameType) {
|
||||
this.playerTypes.put(name, gameType);
|
||||
public void addPlayerType(String name, Class playerType) {
|
||||
if (playerType != null)
|
||||
this.playerTypes.put(name, playerType);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue