From f95811d4c282408267376544aadaeabd667394a7 Mon Sep 17 00:00:00 2001 From: Kli Kli Date: Tue, 23 Jul 2024 08:06:05 +0200 Subject: [PATCH] fix: demonic partners cannot be healed with demon's dream Closes #1166 --- .../common/entity/spirit/demonicpartner/DemonicPartner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/klikli_dev/occultism/common/entity/spirit/demonicpartner/DemonicPartner.java b/src/main/java/com/klikli_dev/occultism/common/entity/spirit/demonicpartner/DemonicPartner.java index 1e7886215..e830ed4b2 100644 --- a/src/main/java/com/klikli_dev/occultism/common/entity/spirit/demonicpartner/DemonicPartner.java +++ b/src/main/java/com/klikli_dev/occultism/common/entity/spirit/demonicpartner/DemonicPartner.java @@ -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();