mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Fix knowledge inscriber crash
Add null checks to prevent crash
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user