Fix knowledge inscriber crash

Add null checks to prevent crash
This commit is contained in:
Usernm committed 2021-09-07 00:06:08 +03:00
1 parent bfdb5bea09
commit a3cc0fd527
1 file changed
+2
@@ -188,6 +188,8 @@ public class HandlerKnowledgeCore
continue;
boolean match = true;
for (int i = 0; i < newInputs.length; ++i) {
if (null == oldInputs[i] || null == newInputs[i])
continue;
if (!ItemStack.areItemStacksEqual(oldInputs[i].getItemStack(), newInputs[i].getItemStack())) {
match = false;
break;