Skip to content

Commit

Permalink
fix: 手持任何物品都能触发快速伪装
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Oct 26, 2024
1 parent 74d3ff2 commit 8663701
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ private boolean invokeOrDisguise(Player player, Action action, EquipmentSlot slo
if (mainHandItem.getType() == Material.PLAYER_HEAD && action == Action.RIGHT_CLICK_BLOCK)
return false;

if (!morphs.doQuickDisguise(player, true)
&& ItemUtils.isSkillActivateItem(mainHandItem))
if (ItemUtils.isSkillActivateItem(mainHandItem)
&& !morphs.doQuickDisguise(player, true))
{
if (InventoryGui.getOpen(player) == null)
{
Expand Down

0 comments on commit 8663701

Please sign in to comment.