Skip to content

Commit

Permalink
fix: ritual interrupts right after stop
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jun 11, 2024
1 parent c7c4a4a commit 1224090
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ public void restoreCastingPlayer() {
}

public boolean activate(Level level, BlockPos pos, Player player, InteractionHand hand, Direction face) {
if(hand == InteractionHand.OFF_HAND)
return false; //prevent offhand activation which can actually cause interruption due to the second firing of activate

if (!level.isClientSide && player instanceof ServerPlayer serverPlayer) {
ItemStack activationItem = player.getItemInHand(hand);
if (activationItem == ItemStack.EMPTY)
Expand Down

0 comments on commit 1224090

Please sign in to comment.