mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 19:20:29 +00:00
Fix castException
This commit is contained in:
parent
42962dcd48
commit
88b55934c7
@ -202,7 +202,7 @@ public class SpeakerPeripheral implements IPeripheral {
|
|||||||
|
|
||||||
if (arguments.length > 2)
|
if (arguments.length > 2)
|
||||||
{
|
{
|
||||||
if (!(arguments[1] instanceof Double)) // Arg wrong type
|
if (!(arguments[2] instanceof Double)) // Arg wrong type
|
||||||
{
|
{
|
||||||
throw new LuaException("Expected string, number (optional), number (optional)");
|
throw new LuaException("Expected string, number (optional), number (optional)");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user