File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/com/klikli_dev/occultism/common/entity/spirit Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 30
30
import com .klikli_dev .occultism .common .item .spirit .BookOfCallingItem ;
31
31
import com .klikli_dev .occultism .registry .OccultismMemoryTypes ;
32
32
import com .klikli_dev .occultism .registry .OccultismSounds ;
33
+ import com .klikli_dev .occultism .registry .OccultismTags ;
33
34
import com .mojang .serialization .Dynamic ;
34
35
import net .minecraft .core .BlockPos ;
35
36
import net .minecraft .core .Direction ;
@@ -679,12 +680,16 @@ public void remove(RemovalReason reason) {
679
680
680
681
@ Override
681
682
public InteractionResult interactAt (Player player , Vec3 vec , InteractionHand hand ) {
683
+ ItemStack itemStack = player .getItemInHand (hand );
684
+
685
+ if (!(itemStack .is (OccultismTags .Items .BOOK_OF_CALLING_FOLIOT ) || itemStack .is (OccultismTags .Items .BOOK_OF_CALLING_DJINNI ))) {
682
686
if (this .isTame () && player .isShiftKeyDown ()) {
683
687
this .openScreen (player );
684
688
return InteractionResult .SUCCESS ;
685
689
}
690
+ }
686
691
687
- return super .interactAt (player , vec , hand );
692
+ return super .interactAt (player , vec , hand );
688
693
}
689
694
690
695
@ Override
You can’t perform that action at this time.
0 commit comments