炒锅功能实现 3
This commit is contained in:
1 parent
192a5e466b
commit
55e828d57f
2 files changed
+12
-1
No files matched your search
+3
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user