Skip to content

Commit

Permalink
fix bug (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
asdflj authored Dec 15, 2022
1 parent e51ec60 commit 0113d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.github.vfyjxf.nee.utils.ItemUtils;
import com.github.vfyjxf.nee.utils.ModIDs;
import com.glodblock.github.nei.FluidPatternTerminalRecipeTransferHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional;
import java.util.*;
import net.minecraft.client.gui.inventory.GuiContainer;
Expand Down Expand Up @@ -75,7 +76,7 @@ private void fluidCraftOverlayRecipe(GuiContainer firstGui, IRecipeHandler recip
public void overlayRecipe(GuiContainer firstGui, IRecipeHandler recipe, int recipeIndex, boolean shift) {
if (isPatternTerm(firstGui)) {
NEENetworkHandler.getInstance().sendToServer(packRecipe(recipe, recipeIndex));
fluidCraftOverlayRecipe(firstGui, recipe, recipeIndex, shift);
if (Loader.isModLoaded(ModIDs.FC)) fluidCraftOverlayRecipe(firstGui, recipe, recipeIndex, shift);
} else {
knowledgeInscriberHandler(firstGui, recipe, recipeIndex);
extremeAutoCrafterHandler(firstGui, recipe, recipeIndex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.github.vfyjxf.nee.utils.ModIDs;
import com.glodblock.github.client.gui.container.ContainerFluidPatternTerminal;
import com.glodblock.github.client.gui.container.ContainerFluidPatternTerminalEx;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.common.network.ByteBufUtils;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
Expand Down Expand Up @@ -72,7 +73,7 @@ public IMessage onMessage(PacketNEIPatternRecipe message, MessageContext ctx) {
((ContainerPatternTermEx) container).getPatternTerminal().setInverted(false);
message.processRecipeHandler((ContainerPatternTermEx) container, message);
}
addFluidCraftSupport(message, ctx);
if (Loader.isModLoaded(ModIDs.FC)) addFluidCraftSupport(message, ctx);
return null;
}

Expand Down

0 comments on commit 0113d3c

Please sign in to comment.