1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-23 01:47:38 +00:00

Make refuelling a little more flexible

This removes the link between item size and refuel limit, meaning
working with other items (such as FE items) is a little easier.
This commit is contained in:
SquidDev
2019-04-16 10:28:10 +01:00
parent 9e9f199e55
commit 3bf47b5290
2 changed files with 15 additions and 6 deletions

View File

@@ -303,7 +303,8 @@ public class TurtleAPI implements ILuaAPI
case 31:
{
// refuel
int count = parseCount( args, 0 );
int count = optInt( args, 0, Integer.MAX_VALUE );
if( count < 0 ) throw new LuaException( "Refuel count " + count + " out of range" );
return tryCommand( context, new TurtleRefuelCommand( count ) );
}
case 32: