Skip to content

Commit

Permalink
Modifier removal fixes
Browse files Browse the repository at this point in the history
Fix free sponge when using venom (#5026)
Fix loss of sponge the second time when not using venom (#5025)
  • Loading branch information
KnightMiner committed Nov 25, 2022
1 parent 6511905 commit 1f3735c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
}
]
}
],
"leftovers": [
"minecraft:sponge"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,6 @@ private void addModifierRecipes(Consumer<FinishedRecipe> consumer) {
.addInput(CompoundIngredient.of(FluidContainerIngredient.fromFluid(TinkerFluids.venom, false),
FluidContainerIngredient.fromIngredient(FluidIngredient.of(TinkerFluids.venom.getLocalTag(), FluidValues.BOTTLE),
Ingredient.of(TinkerFluids.venomBottle))))
.addLeftover(Blocks.SPONGE)
.save(consumer, modResource(worktableFolder + "remove_modifier_venom"));
ModifierSortingRecipe.Builder.sorting()
.addInput(Items.COMPASS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void updateInputs(IToolStackView result, ITinkerableContainer.Mutable inv
super.updateInputs(result, inv, isServer);
if (isServer) {
for (ItemStack stack : leftovers) {
inv.giveItem(stack);
inv.giveItem(stack.copy());
}
}
}
Expand Down

0 comments on commit 1f3735c

Please sign in to comment.