added child as an ult word for baby

This commit is contained in:
Rseifert 2013-02-13 00:12:08 -05:00
parent 663f4829f5
commit 5714eb5f1f

View file

@ -37,7 +37,7 @@ public class CommandGrab extends Command
this.entityToInclude = EntityItem.class;
if (this.parameters.length > 0 && this.parameters[0] != null)
{
if (this.getArg(0).equalsIgnoreCase("baby"))
if (this.getArg(0).equalsIgnoreCase("baby") || this.getArg(0).equalsIgnoreCase("child"))
{
child = true;
if (this.parameters.length > 1 && this.parameters[1] != null)
@ -48,12 +48,9 @@ public class CommandGrab extends Command
else
{
this.entityToInclude = GrabDictionary.get(this.getArg(0)).getEntityClass();
if (this.parameters.length > 1 && this.parameters[1] != null && this.getArg(1).equalsIgnoreCase("baby"))
if (this.parameters.length > 1 && this.parameters[1] != null && (this.getArg(1).equalsIgnoreCase("baby") || this.getArg(0).equalsIgnoreCase("child")))
{
if (this.getArg(1) != null && this.getArg(1).equalsIgnoreCase("baby"))
{
child = true;
}
child = true;
}
}