This commit is contained in:
wenhe committed 2026-09-11 15:40:11 +08:00
1 parent c58f5fea40
commit fd4f65e19e
4 files changed
+13 -9

No files matched your search

@@ -32,7 +32,7 @@ from ....BlueFoxTools.SpecialFunciton.BlueFoxSystem import BlueFoxServerSystem
from ....BlueFoxTools.ToolsConfig import LevelId
# ---- 只导入油锅自己的数据库 ----
from ..YouguoData import SWITCH_RULES
from ..YouguoData import SWITCH_RULES, OILPOT_1
# ---- 统一分发器 ----
from ...service.FeatureDispatcher import FeatureDispatcher
@@ -111,10 +111,10 @@ class YouguoService(BlueFoxServerSystem):
if consume > 0:
self.consumeItem(playerId, itemDict, consume)
# 出锅: 熟炸物消失 + 掉落盘装成品(掉落物形式)
# 出锅: 熟炸物取出 -> 变回油锅(满油) + 掉落盘装成品(掉落物形式)
action = recipe.get("action")
if action == "take_out":
self.clearBlock(pos, dim)
self.replaceBlock(pos, dim, OILPOT_1, playerId)
self.dropItem(dim, pos, recipe["dropItem"])
# 替换方块(倒油/取油/放料)
if recipe.get("target"):