Skip to content

Commit

Permalink
Fix Mass Craft with Recipe Book when Inv is full.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Sep 10, 2024
1 parent af6267d commit f6232c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod_version = 0.24.999-snap

# Required malilib version
malilib_version = 0.20.999-snap
malilib_id = 7c62e83d67
malilib_id = f793bdca69

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 24w36a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ public void onClientTick(MinecraftClient mc)
for (int i = 0; i < limit; ++i)
{
// todo
// InventoryUtils.tryClearCursor(gui);
// InventoryUtils.setInhibitCraftingOutputUpdate(true);
InventoryUtils.throwAllCraftingResultsToGround(recipe, gui);
//InventoryUtils.setInhibitCraftingOutputUpdate(true);

RecipeInputInventory craftingInv = ((IMixinCraftingResultSlot) outputSlot).itemscroller_getCraftingInventory();
if (!recipe.getVanillaRecipe().matches(craftingInv.createRecipeInput(), mc.world))
Expand Down Expand Up @@ -277,8 +275,12 @@ public void onClientTick(MinecraftClient mc)
}

InventoryUtils.shiftClickSlot(gui, outputSlot.id);
InventoryUtils.dropStack(gui, outputSlot.id);
recipeBookClicks = true;
}

InventoryUtils.tryClearCursor(gui);
InventoryUtils.throwAllCraftingResultsToGround(recipe, gui);
}
else if (Configs.Generic.MASS_CRAFT_SWAPS.getBooleanValue())
{
Expand Down

0 comments on commit f6232c3

Please sign in to comment.