fixed null error
fixed it erroring out to debug but now it doesn't work at all
This commit is contained in:
parent
5714eb5f1f
commit
00e1fb65e2
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ public class CommandGrab extends Command
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
this.entityToInclude = EntityItem.class;
|
this.entityToInclude = EntityItem.class;
|
||||||
if (this.parameters.length > 0 && this.parameters[0] != null)
|
if (this.parameters != null && this.parameters.length > 0 && this.parameters[0] != null)
|
||||||
{
|
{
|
||||||
if (this.getArg(0).equalsIgnoreCase("baby") || this.getArg(0).equalsIgnoreCase("child"))
|
if (this.getArg(0).equalsIgnoreCase("baby") || this.getArg(0).equalsIgnoreCase("child"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue