Skip to content

Commit

Permalink
fix: revert back to compiling with 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Sep 9, 2024
1 parent 155108d commit e336cd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.21-R0.1-SNAPSHOT</version>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand All @@ -110,7 +110,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.21-R0.1-SNAPSHOT</version>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static String getMeta(Entity entity) {
}

}
if (!builder.isEmpty()) {
if (builder.length() > 0) {
if (builder.charAt(builder.length() - 1) == ',') builder.setLength(builder.length() - 1);
result = builder.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ public static double calculateChance(double chance, double randChance, Player ki

private static Enchantment getLooting() {
try {
return Enchantment.LOOTING;
return Enchantment.LOOT_BONUS_MOBS;
} catch (NoSuchFieldError e) {
return Enchantment.getByName("LOOT_BONUS_MOBS");
return Enchantment.getByName("LOOTING");
}
}

Expand Down

0 comments on commit e336cd1

Please sign in to comment.