mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Fix some potential NPE problems.
This commit is contained in:
1 parent
bafdb18756
commit
32b3a5b0ac
5 files changed
+23
-4
No files matched your search
@@ -65,6 +65,10 @@ public class InfusionInput extends MachineInput<InfusionInput>
|
||||
@Override
|
||||
public boolean testEquality(InfusionInput other)
|
||||
{
|
||||
if(!isValid())
|
||||
{
|
||||
return !other.isValid();
|
||||
}
|
||||
return infuse.type == other.infuse.type && StackUtils.equalsWildcardWithNBT(inputStack, other.inputStack);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user