Suppressed warnings
This commit is contained in:
@@ -91,6 +91,7 @@ class StackedRecipeListener(
|
||||
inventory.matrix[i] = newItem
|
||||
inventory.setItem(i + 1, newItem)
|
||||
// Just to be safe, modify the instance (safe check) Using ?. causes a warning.
|
||||
@Suppress("SENSELESS_COMPARISON") // I hate compiler warnings
|
||||
if (inventory.matrix[i] != null) {
|
||||
inventory.matrix[i].amount = amount
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user