fix factorio command
This commit is contained in:
parent
52fcfbaa93
commit
c5d4ae8d63
1 changed files with 42 additions and 39 deletions
|
|
@ -11,14 +11,16 @@ commands.add_command(
|
|||
|
||||
const player = (e.player_index != null) ? game.get_player(e.player_index) : null
|
||||
|
||||
const paramUppercase = e.parameter?.toUpperCase()
|
||||
|
||||
if (paramUppercase == undefined) {
|
||||
if (e.parameter == undefined) {
|
||||
if (player != null) {
|
||||
player.print("no parameter")
|
||||
}
|
||||
// do nothing
|
||||
} else if ("PROTOTYPES" == paramUppercase) {
|
||||
} else {
|
||||
|
||||
const paramUppercase: string = e.parameter.toUpperCase()
|
||||
|
||||
if ("PROTOTYPES" == paramUppercase) {
|
||||
emitPrototypes()
|
||||
} else if (paramUppercase.startsWith("CHUNKS")) {
|
||||
|
||||
|
|
@ -67,4 +69,5 @@ commands.add_command(
|
|||
initGlobal(paramUppercase.startsWith("INIT_GLOBAL FORCE"))
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue