炒锅功能实现 3

This commit is contained in:
wenhe committed 2026-09-18 16:27:18 +08:00
1 parent 192a5e466b
commit 55e828d57f
2 files changed
+12 -1

No files matched your search

@@ -238,7 +238,9 @@ class ChaoguoService(BlueFoxServerSystem):
self.dropItem(dim, pos, recipe["dropItem"])
self._clearWokData(dim, pos)
# 普通替换方块(盖锅/锅底/放料/加料)
if recipe.get("target") and action != "take_out":
# 注意: 翻炒(stir)的 target 由 _handleStir 满3次才替换, 这里必须排除,
# 否则第一次右键翻炒就会立刻把方块换成目标态
if recipe.get("target") and action != "take_out" and action != "stir":
self.replaceBlock(pos, dim, recipe["target"], playerId)
self._clearWokData(dim, pos)