面食 5
This commit is contained in:
1 parent
a4c5ad43e4
commit
ad48047f4a
3 files changed
+19
-7
No files matched your search
+4
-3
@@ -166,6 +166,10 @@ class MianshiService(BlueFoxServerSystem):
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
# 先冷却, 再检查下方/消耗等(避免长按右键疯狂弹提示)
|
||||
if not self.checkCooldown((dim, x, y, z), 0.4):
|
||||
return True
|
||||
|
||||
# 需要下方方块(如蒸笼下要点燃的炉灶): 不满足则提示并拦截, 不消耗物品
|
||||
needBelow = rule.get("needBelow")
|
||||
if needBelow and not self._belowIs(dim, (x, y, z), needBelow):
|
||||
@@ -173,9 +177,6 @@ class MianshiService(BlueFoxServerSystem):
|
||||
playerId, rule.get("belowTip", "§c下方方块不符合"))
|
||||
return True
|
||||
|
||||
if not self.checkCooldown((dim, x, y, z), 0.4):
|
||||
return True
|
||||
|
||||
itemDict = self.getCarriedItem(playerId)
|
||||
if not itemDict:
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user