mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Null ItemStack cleanup
This commit is contained in:
1 parent
398f0284a8
commit
c12059e1b1
12 files changed
+40
-45
No files matched your search
@@ -19,7 +19,7 @@ public class InfusionInput extends MachineInput<InfusionInput>
|
||||
public InfuseStorage infuse;
|
||||
|
||||
/** The input ItemStack */
|
||||
public ItemStack inputStack;
|
||||
public ItemStack inputStack = ItemStack.EMPTY;
|
||||
|
||||
public InfusionInput(InfuseStorage storage, ItemStack itemStack)
|
||||
{
|
||||
@@ -53,7 +53,7 @@ public class InfusionInput extends MachineInput<InfusionInput>
|
||||
@Override
|
||||
public boolean isValid()
|
||||
{
|
||||
return infuse.type != null && inputStack != null && !inputStack.isEmpty();
|
||||
return infuse.type != null && !inputStack.isEmpty();
|
||||
}
|
||||
|
||||
public boolean use(NonNullList<ItemStack> inventory, int index, InfuseStorage infuseStorage, boolean deplete)
|
||||
|
||||
Reference in new issue
Block a user