Skip to content

Commit

Permalink
Fix conflicting game tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Apr 26, 2024
1 parent 4dafc08 commit e4c9c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void testReplacer(GameTestHelper helper, ScriptBuilder builder) {
RecipeManager recipeManager = helper.getLevel().getServer().getRecipeManager();

//Test that the recipes were indeed replaced
Optional<RecipeHolder<?>> recipe = recipeManager.byKey(new ResourceLocation("crafttweaker:autogenerated/replacer/minecraft.diamond_boots.1"));
Optional<RecipeHolder<?>> recipe = recipeManager.byKey(new ResourceLocation("crafttweaker:autogenerated/replacer/minecraft.iron_boots.1"));
boolean assertion = recipe.isPresent() && recipe.get().value().getIngredients().get(0).test(Items.APPLE.getDefaultInstance());
assertThat("Replacer did not work", assertion);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import crafttweaker.api.ingredient.IIngredient;
Replacer.create()
.replace<IIngredient>(
<recipecomponent:crafttweaker:input/ingredients>,
<item:minecraft:diamond>,
<item:minecraft:iron_ingot>,
<item:minecraft:apple>
)
.execute();

0 comments on commit e4c9c59

Please sign in to comment.