烧烤烤串,冷却,放置误触,目前创造物品栏所有的碰撞箱修改1

This commit is contained in:
wenhe committed 2026-09-30 17:26:27 +08:00
1 parent c70ab9bcf7
commit 23c64953a2
98 files changed
+945 -914

No files matched your search

@@ -25,6 +25,7 @@ comp = serverApi.GetEngineCompFactory() # 组件工厂
from ....BlueFoxTools.SpecialFunciton.BlueFoxSystem import BlueFoxServerSystem
from ..ShiyongfoodData import EAT_RULE_MAP, TRY_USE_RULES
from ...service.FeatureDispatcher import FeatureDispatcher
# ---- 吃的声音 random.eat(任务三) ----
from ....ModUtil.ServerUtil import PlaySoundToAllClient
@@ -79,6 +80,10 @@ class ShiyongfoodService(BlueFoxServerSystem):
rule = EAT_RULE_MAP.get(blockName)
if not rule:
return False
# 防误吃窗口: 该位置刚被转换服务换成"可吃成品"(如翻烤出的熟串), 短时间内不执行吃,
# 避免快速连点把刚出锅的成品立刻吃掉; 窗口过后正常一次点击即可吃。
if FeatureDispatcher.isEatLocked(pos, dim):
return True
if not self.checkCooldown(key, 0.4):
return True