Skip to content

Commit f95811d

Browse files
committed
fix: demonic partners cannot be healed with demon's dream
Closes #1166
1 parent 873c0a9 commit f95811d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/klikli_dev/occultism/common/entity/spirit/demonicpartner/DemonicPartner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public InteractionResult mobInteract(Player pPlayer, InteractionHand pHand) {
198198

199199
//sit/stand
200200
InteractionResult interactionresult = super.mobInteract(pPlayer, pHand);
201-
if ((!interactionresult.consumesAction() || this.isBaby()) && this.isOwnedBy(pPlayer)) {
201+
if ((!interactionresult.consumesAction() || this.isBaby()) && this.isOwnedBy(pPlayer) && itemstack.isEmpty()) {
202202
this.setOrderedToSit(!this.isOrderedToSit());
203203
this.jumping = false;
204204
this.navigation.stop();

0 commit comments

Comments
 (0)