fix when open the auto filler, always to try update pattern

add using exists item to fill pattern slot
This commit is contained in:
asdflj committed 2023-02-02 11:13:59 +08:00
1 parent 7ecd7d246f
commit a8155c8b17
5 files changed
+51 -4

No files matched your search

@@ -35,7 +35,7 @@ public class FluidPatternTerminalRecipeTransferHandler implements IOverlayHandle
List<OrderStack<?>> in = FluidRecipe.getPackageInputs(recipe, recipeIndex, priority);
List<OrderStack<?>> out = FluidRecipe.getPackageOutputs(recipe, recipeIndex, !notUseOther(recipe));
boolean craft = shouldCraft(recipe);
FluidCraft.proxy.netHandler.sendToServer(new CPacketTransferRecipe(in, out, craft));
FluidCraft.proxy.netHandler.sendToServer(new CPacketTransferRecipe(in, out, craft, shift));
}
}
@@ -14,7 +14,7 @@ import com.glodblock.github.util.Util;
public class OrderStack<T> {
private final T RealStack;
private T RealStack;
private final int index;
public static final int ITEM = 1;
@@ -28,6 +28,10 @@ public class OrderStack<T> {
this.index = order;
}
public void putStack(T stack) {
this.RealStack = stack;
}
public T getStack() {
return RealStack;
}