diff --git a/client/me/SlotDisconnected.java b/client/me/SlotDisconnected.java index 6ed6d7003..cc9d5aea5 100644 --- a/client/me/SlotDisconnected.java +++ b/client/me/SlotDisconnected.java @@ -27,7 +27,8 @@ public class SlotDisconnected extends AppEngSlot { ItemEncodedPattern iep = (ItemEncodedPattern) is.getItem(); ItemStack out = iep.getOutput( is ); - return out; + if ( out != null ) + return out; } } return super.getStack(); diff --git a/container/slot/SlotRestrictedInput.java b/container/slot/SlotRestrictedInput.java index e2d784a7c..73349452e 100644 --- a/container/slot/SlotRestrictedInput.java +++ b/container/slot/SlotRestrictedInput.java @@ -102,7 +102,8 @@ public class SlotRestrictedInput extends AppEngSlot { ItemEncodedPattern iep = (ItemEncodedPattern) is.getItem(); ItemStack out = iep.getOutput( is ); - return out; + if ( out != null ) + return out; } } return super.getStack(); diff --git a/core/localization/GuiText.java b/core/localization/GuiText.java index d74767ad1..6eb3546b8 100644 --- a/core/localization/GuiText.java +++ b/core/localization/GuiText.java @@ -32,7 +32,7 @@ public enum GuiText OfSecondOutput, NoSecondOutput, RFTunnel, Stores, Next, SelectAmount, Lumen, Empty, ConfirmCrafting, - Stored, Crafting, Scheduled, CraftingStatus, Cancel, FromStorage, ToCraft, CraftingPlan, CalculatingWait, Start, Bytes, CraftingCPU, Automatic, CoProcessors, Simulation, Missing, InterfaceTerminal, NoCraftingCPUs, LightTunnel, Clean; + Stored, Crafting, Scheduled, CraftingStatus, Cancel, FromStorage, ToCraft, CraftingPlan, CalculatingWait, Start, Bytes, CraftingCPU, Automatic, CoProcessors, Simulation, Missing, InterfaceTerminal, NoCraftingCPUs, LightTunnel, Clean, InvalidPattern; String root; diff --git a/helpers/PatternHelper.java b/helpers/PatternHelper.java index 22a6494fb..a1bbebc35 100644 --- a/helpers/PatternHelper.java +++ b/helpers/PatternHelper.java @@ -142,8 +142,13 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable