Skip to content

Commit

Permalink
fix: アイテムが有るときにhatコマンドが動かないのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Dec 21, 2023
1 parent b0fed4b commit 7882907
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object HatCommand {
val currentHeadItem = player.getInventory.getHelmet

IO {
if (mainHandItem.getType == Material.AIR) {
if (mainHandItem.getType != Material.AIR) {
SequentialEffect(
TargetedEffect.delay[IO, Player] { p =>
// swapすることでアイテムの過不足を防ぐ
Expand Down

0 comments on commit 7882907

Please sign in to comment.