Merge pull request #3186 from Buildstarted/dev
Peripherals api includes invalid indexes for methods with string parameters
This commit is contained in:
commit
541a802228
1 changed files with 1 additions and 1 deletions
|
@ -1269,7 +1269,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||||
{
|
{
|
||||||
num = ((Double)arguments[0]).intValue();
|
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]);
|
num = Integer.parseInt((String)arguments[0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue