Skip to content

Commit

Permalink
Merge branch '1.20.5' into 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyploszaj committed Sep 29, 2024
2 parents fc5bda5 + d1c9e8b commit ed4b85e
Show file tree
Hide file tree
Showing 7 changed files with 244 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# run: ./gradlew :forge:build

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.4.0
with:
name: Artifacts
path: |
Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Tweaks
* NeoForge fluid tooltips now include ID with advanced tooltips on
* Added new JEI features to JEI/EMI compatibility

### Fixes
* Fixed JEI subtype compatibility on previous versions #686
* Fixed various new JEI compatibility issues #683 #682 #687
* Fixed scrolling not taking exclusion areas into consideration #685
* Fixed JEI ingredient tooltips #719
* Fixed tooltips passing world off thread #709
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_version=1.20.4
enabled_platforms=fabric,neoforge

archives_base_name=emi
mod_version=1.1.13
mod_version=1.1.14
maven_group=dev.emi

architectury_version=4.9.83
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import net.minecraft.recipe.Ingredient;
import net.minecraft.screen.PlayerScreenHandler;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import net.minecraft.util.Identifier;
import net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions;
import net.neoforged.neoforge.common.brewing.BrewingRecipe;
Expand Down Expand Up @@ -260,7 +261,13 @@ protected Text getFluidNameAgnos(Fluid fluid, NbtCompound nbt) {

@Override
protected List<Text> getFluidTooltipAgnos(Fluid fluid, NbtCompound nbt) {
return List.of(getFluidName(fluid, nbt));
List<Text> tooltip = Lists.newArrayList();
tooltip.add(getFluidName(fluid, nbt));
MinecraftClient client = MinecraftClient.getInstance();
if (client.options.advancedItemTooltips) {
tooltip.add(EmiPort.literal(EmiPort.getFluidRegistry().getId(fluid).toString()).formatted(Formatting.DARK_GRAY));
}
return tooltip;
}

@Override
Expand Down
8 changes: 7 additions & 1 deletion xplat/src/main/java/dev/emi/emi/api/recipe/EmiRecipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ public interface EmiRecipe {
EmiRecipeCategory getCategory();

/**
* @return The unique id of the recipe, or null. If null, the recipe cannot be serialized.
* IDs should be standard formatting (minecraft:lime_dye_from_smelting) only if they uniquely represent a data driven json recipe.
* If a mod wants to represent a vanilla recipe with different processing, it cannot reuse the vanilla ID.
* For example, a custom machine's recipe crafting an iron pickaxe cannot use "minecraft:iron_pickaxe".
* If a recipe does not have a normal unique ID, it should use a synthetic ID.
* Synthetic IDs are formatted "namespace:/path" with a "/" at the start of the path.
* Commonly, synthetic IDs will be formatted "mymod:/my_process/unique_name".
* @return The unique ID of the recipe, or null. If null, the recipe cannot be serialized.
*/
@Nullable Identifier getId();

Expand Down
1 change: 1 addition & 0 deletions xplat/src/main/java/dev/emi/emi/jemi/JemiPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ public SlotWidget getOutputWidget(int x, int y) {
}
} catch (Throwable t) {
EmiLog.error("[JEMI] Exception thrown setting JEI crafting recipe");
EmiLog.error(t);
}
}
registry.removeRecipes(r -> r instanceof EmiCraftingRecipe && replaced.contains(r.getId()) && !replacements.contains(r));
Expand Down
241 changes: 223 additions & 18 deletions xplat/src/main/resources/assets/emi/lang/ja_jp.json

Large diffs are not rendered by default.

0 comments on commit ed4b85e

Please sign in to comment.