fix broken logic

This commit is contained in:
Olof Larsson 2013-03-15 13:04:06 +01:00
parent de88118d78
commit 478c60156c

View File

@ -510,7 +510,7 @@ public abstract class MCommand
public <T> T argConcatFrom(int idx, ArgReader<T> argReader)
{
return this.arg(idx, argReader, null);
return this.argConcatFrom(idx, argReader, null);
}
public <T> T argConcatFrom(int idx, ArgReader<T> argReader, T defaultNotSet)
@ -531,6 +531,8 @@ public abstract class MCommand
public <T> T arg(ArgReader<T> argReader)
{
return this.arg(null, argReader, null);
ArgResult<T> result = argReader.read(null, this.sender);
if (result.hasErrors()) this.msg(result.getErrors());
return result.getResult();
}
}