Skip to content

Commit ed34fd1

Browse files
Merge pull request #25 from FTBTeam/dev
Dev
2 parents 0e4fd5b + aec69b2 commit ed34fd1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.2.2]
8+
9+
### Fixed
10+
* Fixed error in JEI loot crate handling code causing broken loot crate display and/or crashes
11+
712
## [3.2.1]
813

914
### Changed

common/src/main/java/dev/ftb/mods/ftbxmodcompat/ftbquests/jei/LootCrateCategory.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import net.minecraft.client.gui.GuiGraphics;
2020
import net.minecraft.network.chat.Component;
2121
import net.minecraft.world.item.ItemStack;
22-
import net.minecraft.world.item.crafting.Ingredient;
2322

2423
import java.util.List;
2524

@@ -84,7 +83,7 @@ public void setRecipe(IRecipeLayoutBuilder builder, WrappedLootCrate recipe, IFo
8483
for (int slot = 0; slot < Math.min(WrappedLootCrate.ITEMS, recipe.outputs.size()); slot++) {
8584
int finalSlot = slot;
8685
builder.addSlot(RecipeIngredientRole.OUTPUT, (slot % WrappedLootCrate.ITEMSX) * 18, (slot / WrappedLootCrate.ITEMSX) * 18 + 36)
87-
.addIngredients(() -> Ingredient.class, recipe.outputIngredients())
86+
.addIngredients(recipe.outputIngredients().get(slot))
8887
.addTooltipCallback((recipeSlotView, tooltip) -> recipeSlotView.getDisplayedIngredient()
8988
.flatMap(ingr -> ingr.getIngredient(VanillaTypes.ITEM_STACK)).ifPresent(stack -> {
9089
if (ItemStack.isSameItemSameComponents(stack, recipe.outputs.get(finalSlot))) {

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ enabled_platforms=fabric,neoforge
66

77
archives_base_name=ftb-xmod-compat
88
readable_name=FTB XMod Compat
9-
mod_version=3.2.1
9+
mod_version=3.2.2
1010
maven_group=dev.ftb.mods
1111
curseforge_id=889915
1212

0 commit comments

Comments
 (0)