From f27a0f792474dbec7cdd3cfd4b836e04a7365e9e Mon Sep 17 00:00:00 2001 From: Lauriichan Date: Fri, 30 Aug 2024 18:12:22 +0200 Subject: [PATCH] Fix McMMO support --- pom.xml | 2 +- .../spigot/smoothtimber/compatibility/mcmmo/McMmo.java | 4 ++-- .../spigot/smoothtimber/version/changer/v1_20xChanger.java | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 6fc3472..c2f4fc7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.syntaxphoenix.spigot smoothtimber-legacy - 1.27.0 + 1.27.1 SmoothTimber jar diff --git a/src/main/java/com/syntaxphoenix/spigot/smoothtimber/compatibility/mcmmo/McMmo.java b/src/main/java/com/syntaxphoenix/spigot/smoothtimber/compatibility/mcmmo/McMmo.java index 4c0b9e3..b86d4ac 100644 --- a/src/main/java/com/syntaxphoenix/spigot/smoothtimber/compatibility/mcmmo/McMmo.java +++ b/src/main/java/com/syntaxphoenix/spigot/smoothtimber/compatibility/mcmmo/McMmo.java @@ -28,9 +28,9 @@ public void onDisable(final SmoothTimber smoothTimber) throws Exception { private Listener createChopListener(PluginPackage pluginPackage) { try { WoodcuttingManager.class.getMethod("processBonusDropCheck", BlockState.class); - return new McMmoChopListener_v1(); - } catch (NoSuchMethodException | RuntimeException e) { return new McMmoChopListener_v2(pluginPackage.getPlugin()); + } catch (NoSuchMethodException | RuntimeException e) { + return new McMmoChopListener_v1(); } } diff --git a/src/main/java/com/syntaxphoenix/spigot/smoothtimber/version/changer/v1_20xChanger.java b/src/main/java/com/syntaxphoenix/spigot/smoothtimber/version/changer/v1_20xChanger.java index 4fbdd09..f1c0e05 100644 --- a/src/main/java/com/syntaxphoenix/spigot/smoothtimber/version/changer/v1_20xChanger.java +++ b/src/main/java/com/syntaxphoenix/spigot/smoothtimber/version/changer/v1_20xChanger.java @@ -26,6 +26,11 @@ "1.20.2", "1.20.3", "1.20.4", + "1.20.5", + "1.20.6", + "1.21.0", + "1.21.1", + "1.21.2", }) public final class v1_20xChanger implements VersionChanger {