Skip to content

Commit

Permalink
require and consume the experience bottle for arcane lift
Browse files Browse the repository at this point in the history
  • Loading branch information
reoseah committed Nov 3, 2024
1 parent e4cfe5a commit d8f629c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public MapCodec<? extends SpellEffect> getCodec() {

@Override
public void finish(SpellBookRecipeInput input, RegistryWrapper.WrapperLookup lookup) {
if (input.getStackInSlot(0).isEmpty()) {
return;
}
var stack = input.getStackInSlot(0);
stack.decrement(1);

var world = input.getPlayer().getWorld();
var pos = input.getPlayer().getBlockPos();

Expand Down

0 comments on commit d8f629c

Please sign in to comment.