Suppressed warnings

This commit is contained in:
Auxilor
2022-03-01 10:25:43 +00:00
parent 4cb630d201
commit cdf5cc3abe

View File

@@ -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
}