Skip to content

Commit

Permalink
Add temporary fix for paper
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Jun 4, 2024
1 parent 224e101 commit d80cb97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ public void onEnable() {

String packageName = getServer().getClass().getPackage().getName();
String version = packageName.substring(packageName.lastIndexOf('.') + 1);
if (version.equals("craftbukkit")) {
// We must be running Paper without relocation
version = "v1_20_R4";
}

getLogger().info("Loading support for " + version);
try {
final Class<?> worldHandlerClazz = Class.forName("net.countercraft.movecraft.compat." + version + ".IWorldHandler");
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<url>http://github.com/apdevteam/Movecraft</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>8.0.0_beta-3</revision>
<revision>8.0.0_beta-3-hotfix</revision>
</properties>

<modules>
Expand Down

0 comments on commit d80cb97

Please sign in to comment.