Consume configured ingredient quantities for editor cauldron recipes

This commit is contained in:
2026-09-08 23:13:50 +03:00
parent 43c3222fcb
commit 860b7a678e
4 changed files with 7 additions and 7 deletions
@@ -29,7 +29,7 @@ public final class EditorCauldronRecipes {
if (!level.setBlock(pos, next, 3)) return true;
}
ItemStack held = player.getItemInHand(hand);
held.consume(1, player);
held.consume(request.inputCount(), player);
if (held.isEmpty()) player.setItemInHand(hand, output);
else { player.getInventory().add(output); if (!output.isEmpty()) player.drop(output, false); }
level.playSound(null, pos, net.minecraft.sounds.SoundEvents.BUCKET_EMPTY, net.minecraft.sounds.SoundSource.BLOCKS, 0.5F, 1);
@@ -21,6 +21,6 @@ side="SERVER"
[[dependencies.astracauldron]]
modId="astraplus"
type="required"
versionRange="[0.5.8,0.6)"
versionRange="[0.5.9,0.6)"
ordering="AFTER"
side="SERVER"