Pull out null check because console can have null faction. Fixes #375.

This commit is contained in:
drtshock 2015-05-07 10:39:04 -05:00
parent 8af57197ce
commit 2b0638f54f

View File

@ -38,10 +38,11 @@ public class CmdShow extends FCommand {
Faction faction = myFaction; Faction faction = myFaction;
if (this.argIsSet(0)) { if (this.argIsSet(0)) {
faction = this.argAsFaction(0); faction = this.argAsFaction(0);
}
if (faction == null) { if (faction == null) {
return; return;
} }
}
// if economy is enabled, they're not on the bypass list, and this // if economy is enabled, they're not on the bypass list, and this
// command has a cost set, make 'em pay // command has a cost set, make 'em pay