1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +00:00

Fix castException

This commit is contained in:
Restioson 2017-05-12 21:19:37 +02:00
parent 42962dcd48
commit 88b55934c7

View File

@ -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)");
} }