mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-05-06 09:24:14 +00:00
Converted (!x == y) to x != y
This commit is contained in:
parent
b28c565665
commit
4df4b91d09
@ -150,7 +150,7 @@ public class SpeakerPeripheral implements IPeripheral {
|
|||||||
|
|
||||||
if (arguments.length > 1)
|
if (arguments.length > 1)
|
||||||
{
|
{
|
||||||
if (!(arguments[1] instanceof Double) && !(arguments[1] == null)) // Arg wrong type
|
if (!(arguments[1] instanceof Double) && arguments[1] != null) // Arg wrong type
|
||||||
{
|
{
|
||||||
throw new LuaException("Expected string, number (optional), number (optional)");
|
throw new LuaException("Expected string, number (optional), number (optional)");
|
||||||
}
|
}
|
||||||
@ -160,7 +160,7 @@ public class SpeakerPeripheral implements IPeripheral {
|
|||||||
|
|
||||||
if (arguments.length > 2)
|
if (arguments.length > 2)
|
||||||
{
|
{
|
||||||
if (!(arguments[1] instanceof Double) && !(arguments[2] == null)) // Arg wrong type
|
if (!(arguments[1] instanceof Double) && arguments[2] != null) // Arg wrong type
|
||||||
{
|
{
|
||||||
throw new LuaException("Expected string, number (optional), number (optional)");
|
throw new LuaException("Expected string, number (optional), number (optional)");
|
||||||
}
|
}
|
||||||
@ -200,7 +200,7 @@ public class SpeakerPeripheral implements IPeripheral {
|
|||||||
|
|
||||||
if (arguments.length > 1)
|
if (arguments.length > 1)
|
||||||
{
|
{
|
||||||
if (!(arguments[1] instanceof Double) && !(arguments[1] == null)) // Arg wrong type
|
if (!(arguments[1] instanceof Double) && arguments[1] != null) // Arg wrong type
|
||||||
{
|
{
|
||||||
throw new LuaException("Expected string, number (optional), number (optional)");
|
throw new LuaException("Expected string, number (optional), number (optional)");
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ public class SpeakerPeripheral implements IPeripheral {
|
|||||||
|
|
||||||
if (arguments.length > 2)
|
if (arguments.length > 2)
|
||||||
{
|
{
|
||||||
if (!(arguments[2] instanceof Double) && !(arguments[2] == null)) // Arg wrong type
|
if (!(arguments[2] instanceof Double) && arguments[2] != null) // Arg wrong type
|
||||||
{
|
{
|
||||||
throw new LuaException("Expected string, number (optional), number (optional)");
|
throw new LuaException("Expected string, number (optional), number (optional)");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user