1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-26 00:46:54 +00:00

Converted (!x == y) to x != y

This commit is contained in:
Restioson 2017-05-16 20:02:59 +02:00
parent b28c565665
commit 4df4b91d09

View File

@ -150,7 +150,7 @@ public class SpeakerPeripheral implements IPeripheral {
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)");
}
@ -160,7 +160,7 @@ public class SpeakerPeripheral implements IPeripheral {
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)");
}
@ -200,7 +200,7 @@ public class SpeakerPeripheral implements IPeripheral {
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)");
}
@ -211,7 +211,7 @@ public class SpeakerPeripheral implements IPeripheral {
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)");
}