Skip to content

Commit

Permalink
Fixed a NullPointer exception when enchanting items
Browse files Browse the repository at this point in the history
That was a strange fix
  • Loading branch information
Geolykt committed Oct 20, 2020
1 parent 4863d54 commit 2374695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.geolykt</groupId>
<artifactId>enchantments-plus</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ public Builder(Supplier<T> sup, int id) {
customEnchantment = sup.get();
customEnchantment.setId(id);
customEnchantment.key = new NamespacedKey(Storage.plugin, "ench." + id);
conflicting();
}

public Builder<T> maxLevel(int maxLevel) {
Expand Down

0 comments on commit 2374695

Please sign in to comment.