Skip to content

Commit

Permalink
Fix saddle right-click
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Jul 14, 2023
1 parent 77a963a commit 2c7c53e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void readAdditionalSaveData(CompoundTag compound) {
@Override
protected void setSaddled(Player player, InteractionHand hand, ItemStack heldItemStack) {
if (!this.level.isClientSide) {
this.inventory.setItem(0, heldItemStack.copy().split(1));
this.inventory.setItem(0, heldItemStack.getItem().getDefaultInstance());
this.setSaddleType(heldItemStack);
this.usePlayerItem(player, hand, heldItemStack);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void addAdditionalSaveData(CompoundTag compound) {
@Override
protected void setSaddled(Player player, InteractionHand hand, ItemStack heldItemStack) {
if (!this.level.isClientSide) {
this.saddleItemStackHandler.setStackInSlot(0, heldItemStack.copy().split(1));
this.saddleItemStackHandler.setStackInSlot(0, heldItemStack.getItem().getDefaultInstance());
this.setSaddleType(heldItemStack);
this.usePlayerItem(player, hand, heldItemStack);
}
Expand Down

0 comments on commit 2c7c53e

Please sign in to comment.