From d8f33abe0211a1c2f5b6972ff77aa84205a00a46 Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Sat, 9 Dec 2023 14:43:48 +0800 Subject: [PATCH] =?UTF-8?q?misc:=20=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=20?= =?UTF-8?q?misc:=20=E4=B8=80=E4=BA=9B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/xiamomc/morph/config/MorphConfigManager.java | 2 +- .../xiamomc/morph/events/InteractionMirrorProcessor.java | 2 -- src/main/resources/config.yml | 5 ++++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/xiamomc/morph/config/MorphConfigManager.java b/src/main/java/xiamomc/morph/config/MorphConfigManager.java index 74121f6a..264d45ca 100644 --- a/src/main/java/xiamomc/morph/config/MorphConfigManager.java +++ b/src/main/java/xiamomc/morph/config/MorphConfigManager.java @@ -164,7 +164,7 @@ public void reload() }); //更新配置 - int targetVersion = 27; + int targetVersion = 28; var configVersion = getOrDefault(Integer.class, ConfigOption.VERSION); diff --git a/src/main/java/xiamomc/morph/events/InteractionMirrorProcessor.java b/src/main/java/xiamomc/morph/events/InteractionMirrorProcessor.java index 041cd25b..fab9b3eb 100644 --- a/src/main/java/xiamomc/morph/events/InteractionMirrorProcessor.java +++ b/src/main/java/xiamomc/morph/events/InteractionMirrorProcessor.java @@ -236,10 +236,8 @@ public void onPlayerSwing(PlayerArmSwingEvent e) if (!playerInDistance || simStack.contains(targetPlayer)) return; //若源玩家正在丢出物品,不要处理 - //若源玩家没有在破坏方块,不要处理 //检查玩家在此tick内是否存在互动以避免重复镜像 if (tracker.droppingItemThisTick(player) - || !tracker.isBreakingSuspect(player) || tracker.interactingThisTick(player)) { return; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index b44ecdf3..0443f299 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -109,6 +109,9 @@ root: # Add a minimal consumption limit (20% of the configured consumption speed) as an "Idle consumption" for players per tick. idle_consumption: true + # Disable Fly Ability in the following worlds + nofly_worlds: [] + # Ambient sound options ambient_sounds: # The frequency for this plugin to play ambient sounds for disguises. @@ -243,4 +246,4 @@ root: client_renderer: true # Do not touch unless you know what you're doing! - version: 27 + version: 28