Quellcode durchsuchen

修改防丢弃函数的判断条件

HerobrineXia vor 5 Jahren
Ursprung
Commit
9844f5a35b

+ 2 - 1
data/item/functions/tick2.mcfunction

@@ -1,5 +1,6 @@
 # 防止玩家丢弃物品:如果物品存在 Thrower 则要求强制捡起
-execute unless score $survival mem matches 1.. unless score $state mem matches 5 as @e[type=item] if data entity @s Thrower run function item:disable_throw
+execute unless score $survival mem matches 1.. as @e[type=item] if data entity @s Thrower run function item:disable_throw
+execute if score $survival mem matches 1.. unless score $state mem matches 5 as @e[type=item] if data entity @s Thrower run function item:disable_throw
 
 # 检查玩家拾取奖励物品
 execute as @a if data entity @s Inventory[{"tag":{"bonus_new":1b}}] run function item:bonus_item/call

+ 0 - 1
data/ltw/functions/main/player_enter.mcfunction

@@ -27,7 +27,6 @@ function lib:bossbar/show
 # TODO: [LTCat/HIM] 土豆的两个炸弹同时爆炸把两个人炸死,让他们俩并列第三(按存活回合数记分)
 # FIXME: 旁观者在一轮开始时会被切换为冒险模式又切回去,这会造成游戏模式变更提示,鬼知道为啥
 # FIXME: [010] 如果有人没领取奖励,可以一直站在上面,在奖励领取阶段结束时再拿到一次
-# FIXME: [HIM/010] 把道具放到 “已锁定” 格子导致道具消失
 # FIXME: [LTCat] 最后一轮还是会刷出道具
 # TODO: [LTCat] 优化色彩迷阵的加速算法
 # FIXME: 准备倒计时与 Tooltip 降低不一致