Pull out null check because console can have null faction. Fixes #375.
This commit is contained in:
parent
8af57197ce
commit
2b0638f54f
@ -38,10 +38,11 @@ public class CmdShow extends FCommand {
|
||||
Faction faction = myFaction;
|
||||
if (this.argIsSet(0)) {
|
||||
faction = this.argAsFaction(0);
|
||||
}
|
||||
|
||||
if (faction == null) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// if economy is enabled, they're not on the bypass list, and this
|
||||
// command has a cost set, make 'em pay
|
||||
|
Loading…
Reference in New Issue
Block a user