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 f023f3b commit 715c08d
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 @@ -84,7 +84,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 715c08d

Please sign in to comment.