Fixed ComplexInEco

This commit is contained in:
Auxilor
2022-03-01 08:33:14 +00:00
parent 6ecbb2d901
commit 1a90fa6707

View File

@@ -26,7 +26,7 @@ class ComplexInEco : RecipeListener {
} }
for (i in 0..8) { for (i in 0..8) {
val itemStack = event.inventory.matrix[i] val itemStack = event.inventory.matrix[i] ?: continue
val part = craftingRecipe.parts[i] val part = craftingRecipe.parts[i]
if (part.isCustomWhenShouldNotBe(itemStack)) { if (part.isCustomWhenShouldNotBe(itemStack)) {
event.deny() event.deny()