Skip to content

Commit

Permalink
update PNX latest commit d3c75b6787
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Feb 7, 2023
1 parent f6dc24d commit a2cfd0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
15 changes: 11 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@

<groupId>cn.coolloong.amethyst_equipment</groupId>
<artifactId>AmethystEquipment</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.2-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://www.jitpack.io</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>cn.powernukkitx</groupId>
<artifactId>powernukkitx</artifactId>
<version>1.19.40-r2</version>
<groupId>com.github.PowerNukkitX</groupId>
<artifactId>PowerNukkitX</artifactId>
<version>d3c75b6787</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@ public class AmethystEquipment extends PluginBase implements Listener {
public void onLoad() {
instance = this;
log = this.getLogger();
try {
Item.registerCustomItem(List.of(
AmethystAxe.class, AmethystHoe.class, AmethystSword.class, AmethystShovel.class, AmethystPickaxe.class,
AmethystBoots.class, AmethystChestplate.class, AmethystHelmet.class, AmethystLeggings.class, AmethystSpear.class));
} catch (NoSuchMethodException | InstantiationException | IllegalAccessException |
InvocationTargetException e) {
log.info("AmethystEquipment start error!");
e.printStackTrace();
}
Item.registerCustomItem(List.of(
AmethystAxe.class, AmethystHoe.class, AmethystSword.class, AmethystShovel.class, AmethystPickaxe.class,
AmethystBoots.class, AmethystChestplate.class, AmethystHelmet.class, AmethystLeggings.class, AmethystSpear.class));
}

@Override
Expand Down

0 comments on commit a2cfd0f

Please sign in to comment.