Skip to content

Commit

Permalink
fix: spirit fire output is doubled if two fires are adjacent
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Aug 6, 2024
1 parent 145d30e commit 3b879e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void entityInside(BlockState pState, Level pLevel, BlockPos pPos, Entity
Optional<SpiritFireRecipe> recipe =
pLevel.getRecipeManager().getRecipeFor(OccultismRecipes.SPIRIT_FIRE_TYPE.get(), fakeInventory, pLevel);

if (recipe.isPresent()) {
if (recipe.isPresent() && !item.isRemoved()) {
item.remove(RemovalReason.DISCARDED);

ItemStack result = recipe.get().assemble(fakeInventory, pLevel.registryAccess());
Expand Down

0 comments on commit 3b879e4

Please sign in to comment.