Consume configured ingredient quantities for editor cauldron recipes
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user