Skip to content

Commit

Permalink
Update Spigot to 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo committed Sep 10, 2023
1 parent 8c88dc8 commit eb983be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.jikoo</groupId>
<artifactId>planarenchanting</artifactId>
<version>1.1.0</version>
<version>1.1.1-SNAPSHOT</version>

<name>PlanarEnchanting</name>

Expand Down Expand Up @@ -66,7 +66,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19.3-R0.1-SNAPSHOT</version>
<version>1.20.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ private static boolean isRepairable(@NotNull Material material) {
FISHING_ROD,
SHEARS,
TRIDENT,
CROSSBOW -> false;
CROSSBOW,
BRUSH -> false;
default -> material.getMaxDurability() > 0;
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ private static boolean isTableEnchantable(Material material) {
return switch (material) {
// Enchanted book is technically not enchantable but for simplicity it's included.
case BOOK, ENCHANTED_BOOK -> true;
case CARROT_ON_A_STICK, WARPED_FUNGUS_ON_A_STICK, ELYTRA, FLINT_AND_STEEL, SHEARS -> false;
case CARROT_ON_A_STICK, WARPED_FUNGUS_ON_A_STICK, ELYTRA, FLINT_AND_STEEL, SHEARS, BRUSH ->
false;
default -> Arrays.stream(EnchantmentTarget.values())
.anyMatch(
target ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ void testLegacySeedUnsetPostEnchant() {
itemStack,
level,
new HashMap<>(),
Enchantment.DURABILITY,
0,
buttonIndex);
}

Expand Down

0 comments on commit eb983be

Please sign in to comment.