Skip to content

Commit

Permalink
misc: 让快速伪装需要潜行使用
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Oct 7, 2024
1 parent afe8bfc commit 0ab246a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/xiamomc/morph/events/CommonEventProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,13 @@ private boolean tryInvokeSkillOrQuickDisguise(Player player, Action action, Equi
if (mainHandItemType.isAir() || (useNewSkillItemMethod.get() ? false : !player.isSneaking())) return false;

//右键玩家头颅:快速伪装
if (!action.equals(Action.RIGHT_CLICK_BLOCK) && !action.isLeftClick() && morphs.doQuickDisguise(player, false))
if (!action.equals(Action.RIGHT_CLICK_BLOCK)
&& action.isRightClick()
&& player.isSneaking()
&& morphs.doQuickDisguise(player, false))
{
return true;
}

if (!isItemASkillItem(actionItem, mainHandItem) || state == null) return false;

Expand Down

0 comments on commit 0ab246a

Please sign in to comment.