mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 17:56:34 -04:00
parent
67c375391b
commit
a19bb2b692
@ -382,7 +382,7 @@ object DebugCard {
|
||||
def setGameType(context: Context, args: Arguments): Array[AnyRef] =
|
||||
withPlayer(player => {
|
||||
val gametype = args.checkString(0)
|
||||
player.setGameType(GameType.values.find(_.name == gametype).getOrElse(GameType.SURVIVAL))
|
||||
player.setGameType(GameType.values.find(_.getName == gametype).getOrElse(GameType.SURVIVAL))
|
||||
null
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user