Fix turtle.craft failing when missing an argument.

Stupid typo, stupid squid.
This commit is contained in:
SquidDev 2020-07-03 21:37:14 +01:00
parent 9f8774960f
commit d2a52a8b5d
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public String getType()
@LuaFunction
public final MethodResult craft( Optional<Integer> count ) throws LuaException
{
int limit = count.orElse( 65 );
int limit = count.orElse( 64 );
if( limit < 0 || limit > 64 ) throw new LuaException( "Crafting count " + limit + " out of range" );
return turtle.executeCommand( new TurtleCraftCommand( limit ) );
}