Skip to content

Commit

Permalink
fix: demonic partners cannot be healed with demon's dream
Browse files Browse the repository at this point in the history
Closes #1166
  • Loading branch information
klikli-dev committed Jul 23, 2024
1 parent 873c0a9 commit f95811d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public InteractionResult mobInteract(Player pPlayer, InteractionHand pHand) {

//sit/stand
InteractionResult interactionresult = super.mobInteract(pPlayer, pHand);
if ((!interactionresult.consumesAction() || this.isBaby()) && this.isOwnedBy(pPlayer)) {
if ((!interactionresult.consumesAction() || this.isBaby()) && this.isOwnedBy(pPlayer) && itemstack.isEmpty()) {
this.setOrderedToSit(!this.isOrderedToSit());
this.jumping = false;
this.navigation.stop();
Expand Down

0 comments on commit f95811d

Please sign in to comment.