mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Merge pull request #14 from Usernm0/knowledge-inscriber-fix
Fix knowledge inscriber crash
This commit is contained in:
1 file changed
+10
-4
@@ -188,10 +188,16 @@ public class HandlerKnowledgeCore
|
||||
continue;
|
||||
boolean match = true;
|
||||
for (int i = 0; i < newInputs.length; ++i) {
|
||||
if (!ItemStack.areItemStacksEqual(oldInputs[i].getItemStack(), newInputs[i].getItemStack())) {
|
||||
match = false;
|
||||
break;
|
||||
}
|
||||
if (oldInputs[i] == null && newInputs[i] == null)
|
||||
continue;
|
||||
if (oldInputs[i] == null || newInputs[i] == null) {
|
||||
match = false;
|
||||
break;
|
||||
}
|
||||
if (!ItemStack.areItemStacksEqual(oldInputs[i].getItemStack(), newInputs[i].getItemStack())) {
|
||||
match = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (match) {
|
||||
// can't be more than one duplicate
|
||||
|
||||
Reference in new issue
Block a user