From 14d8cb13e6f95728f330346d7fd0f3b8f0b1897c Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Mon, 25 Sep 2023 02:25:30 +0800 Subject: [PATCH] =?UTF-8?q?misc:=20=E7=A6=81=E7=94=A8ItemDisplay=E4=BC=AA?= =?UTF-8?q?=E8=A3=85=E3=80=81=E4=B8=8D=E8=A6=81=E6=8A=8AfallbackProvider?= =?UTF-8?q?=E7=BA=B3=E5=85=A5fm=20manage=E7=9A=84=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/xiamomc/morph/MorphManager.java | 2 +- .../subcommands/plugin/management/GrantDisguiseSubCommand.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/xiamomc/morph/MorphManager.java b/src/main/java/xiamomc/morph/MorphManager.java index d604b07f..de4676b4 100644 --- a/src/main/java/xiamomc/morph/MorphManager.java +++ b/src/main/java/xiamomc/morph/MorphManager.java @@ -131,7 +131,7 @@ private void load() registerProviders(ObjectList.of( new VanillaDisguiseProvider(), new PlayerDisguiseProvider(), - new ItemDisplayProvider(), + //new ItemDisplayProvider(), //new LocalDisguiseProvider(), fallbackProvider )); diff --git a/src/main/java/xiamomc/morph/commands/subcommands/plugin/management/GrantDisguiseSubCommand.java b/src/main/java/xiamomc/morph/commands/subcommands/plugin/management/GrantDisguiseSubCommand.java index 0b5190e9..9b28391a 100644 --- a/src/main/java/xiamomc/morph/commands/subcommands/plugin/management/GrantDisguiseSubCommand.java +++ b/src/main/java/xiamomc/morph/commands/subcommands/plugin/management/GrantDisguiseSubCommand.java @@ -60,6 +60,8 @@ else if (args.size() == 2) //size == 2: 补全生物和玩家 for (var p : MorphManager.getProviders()) { + if (p == MorphManager.fallbackProvider) continue; + var ns = p.getNameSpace(); p.getAllAvailableDisguises().forEach(s -> {