右键 改2
This commit is contained in:
1 parent
e118892a1d
commit
45d328b339
19 files changed
+826
-7
No files matched your search
+4
-7
@@ -256,13 +256,10 @@ class FeatureDispatcher(BlueFoxServerSystem):
|
||||
|
||||
owners = self.blockOwnerAll.get(clickedName) if clickedName else None
|
||||
|
||||
# 手持方块物品右键"功能方块"(右键服务管辖的方块): 若没有任何 itemUseOn
|
||||
# 服务会处理它, 直接取消默认放置 —— 防止"先放一个方块再消失"的体验
|
||||
# (例如手持生饺子右键蒸笼、手持方块右键面团等, 意图是转换而非放置)
|
||||
if clickedName and owners and (not services or not any(
|
||||
s in owners for s in services)):
|
||||
args['ret'] = True
|
||||
return
|
||||
# 【已移除宽泛兜底】以前"手持方块物品右键任何功能方块且无 itemUseOn 服务
|
||||
# 就 ret=True 取消默认放置", 导致正常放置失效。现在改由客户端白名单精确
|
||||
# 拦截(见 ClientFeatureDispatcher + InterceptData), 服务端只处理真正注册了
|
||||
# itemUseOn 的组合, 其余一律放行(放置恢复正常)。
|
||||
|
||||
if not services:
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user