Skip to content

Commit 5d3dade

Browse files
committed
fix command help, show default value even if default value is 0
1 parent f8bc7bf commit 5d3dade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/world/actor/player/player.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ export class Player extends Actor {
804804
let strHelp: string = '';
805805
if(command.args) {
806806
for(const arg of command.args) {
807-
if(arg.defaultValue) {
807+
if(arg.defaultValue !== undefined) {
808808
strHelp = `${strHelp} \\<${arg.name} = ${arg.defaultValue}>`;
809809
} else {
810810
strHelp = `${strHelp} \\<${arg.name}>`;

0 commit comments

Comments
 (0)