Skip to content

Commit

Permalink
Merge remote-tracking branch 'Nilau1998/FixCraftingStations' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master committed Nov 3, 2023
2 parents 34af627 + 1a3cf1d commit 9211981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//version: 1697697256
//version: 1698936026
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
Expand Down Expand Up @@ -646,7 +646,7 @@ repositories {

def mixinProviderGroup = "io.github.legacymoddingmc"
def mixinProviderModule = "unimixins"
def mixinProviderVersion = "0.1.7.1"
def mixinProviderVersion = "0.1.13"
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
ext.mixinProviderSpec = mixinProviderSpec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ private void moveIngredients(GuiContainer gui, List<IngredientDistribution> assi
if (!slot.getHasStack() || !canMoveFrom(slot, gui)) continue;

ItemStack stack = slot.getStack();
int backupStackSize = stack.stackSize; // clickSlot can kill the reference
if (!canStack(stack, pstack)) continue;

int amount = Math.min(transferCap - transferred, stack.stackSize);
FastTransferManager.clickSlot(gui, slot.slotNumber);
int amount = Math.min(transferCap - transferred, backupStackSize);
for (int c = 0; c < amount; c++) {
FastTransferManager.clickSlot(gui, dest.slotNumber, 1);
transferred++;
Expand Down

0 comments on commit 9211981

Please sign in to comment.