Merge pull request #3186 from Buildstarted/dev

Peripherals api includes invalid indexes for methods with string parameters
This commit is contained in:
Aidan 2016-04-25 14:27:58 -04:00
commit 541a802228

View file

@ -1269,7 +1269,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
{
num = ((Double)arguments[0]).intValue();
}
else if(arguments[0] instanceof String && (method != 6 && method != 7))
else if(arguments[0] instanceof String && (method != 5 && method != 6))
{
num = Integer.parseInt((String)arguments[0]);
}