Browse Source

修复debug only

HerobrineXia 6 years ago
parent
commit
58e060b551
1 changed files with 3 additions and 0 deletions
  1. 3 0
      data/item/functions/lobby_state/check_slot.mcfunction

+ 3 - 0
data/item/functions/lobby_state/check_slot.mcfunction

@@ -1,6 +1,9 @@
 # 第八格
 execute unless data entity @s[tag=lobby_watch] Inventory[{Slot:8b,tag:{lobby_item:1b,lobby_watch:1b}}] run function item:lobby_state/join_game
+execute if data entity @s[tag=lobby_watch] Inventory[{Slot:8b,tag:{lobby_item:1b,lobby_watch:1b}}] unless data entity @s[tag=lobby_watch] Inventory[{Count:1b,Slot:8b,tag:{lobby_item:1b,lobby_watch:1b}}] run function item:lobby_state/join_watch
 execute unless data entity @s[tag=lobby_ready] Inventory[{Slot:8b,tag:{lobby_item:1b,lobby_ready:1b}}] run function item:lobby_state/join_watch
+execute if data entity @s[tag=lobby_ready] Inventory[{Slot:8b,tag:{lobby_item:1b,lobby_ready:1b}}] unless data entity @s[tag=lobby_ready] Inventory[{Count:1b,Slot:8b,tag:{lobby_item:1b,lobby_ready:1b}}] run function item:lobby_state/join_game
+
 
 # 清除临时物品
 clear @s barrier{LockTempItem:1b}