Skip to content

Commit

Permalink
fix command help, show default value even if default value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Promises committed Nov 24, 2022
1 parent f8bc7bf commit 5d3dade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/world/actor/player/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ export class Player extends Actor {
let strHelp: string = '';
if(command.args) {
for(const arg of command.args) {
if(arg.defaultValue) {
if(arg.defaultValue !== undefined) {
strHelp = `${strHelp} \\<${arg.name} = ${arg.defaultValue}>`;
} else {
strHelp = `${strHelp} \\<${arg.name}>`;
Expand Down

0 comments on commit 5d3dade

Please sign in to comment.