Skip to content

Commit

Permalink
fix: some familiars cannot be healed with demon's dream fruit
Browse files Browse the repository at this point in the history
Closes #905
  • Loading branch information
klikli-dev committed Mar 25, 2023
1 parent e4c23fe commit 08ae0d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ protected InteractionResult mobInteract(Player playerIn, InteractionHand hand) {
} else if (stack.getItem() == OccultismItems.DEBUG_WAND.get()) {
this.setOwnerId(playerIn.getUUID());
return InteractionResult.sidedSuccess(this.level.isClientSide);
} else {
if (!this.level.isClientSide && this.getFamiliarOwner() == playerIn)
this.setSitting(!this.isSitting());
} else if (stack.isEmpty() && !this.level.isClientSide && this.getFamiliarOwner() == playerIn) {
this.setSitting(!this.isSitting());
return InteractionResult.sidedSuccess(this.level.isClientSide);
}
return InteractionResult.PASS;
}

@Override
Expand Down

0 comments on commit 08ae0d5

Please sign in to comment.