Skip to content

Commit

Permalink
Fix McMMO support
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan committed Aug 30, 2024
1 parent abb2567 commit f27a0f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.syntaxphoenix.spigot</groupId>
<artifactId>smoothtimber-legacy</artifactId>
<version>1.27.0</version>
<version>1.27.1</version>
<name>SmoothTimber</name>
<packaging>jar</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit f27a0f7

Please sign in to comment.