1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-04-09 12:16:41 +00:00

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

View File

@ -41,7 +41,7 @@ public class CraftingTablePeripheral implements IPeripheral
@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 ) );
}