Added debug

This commit is contained in:
Verox 2023-09-19 17:34:02 +02:00
parent e2068d19e2
commit e75cfb903e
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.cimeyclust.addonreader.resources</groupId>
<artifactId>CustomResources</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<build>
<defaultGoal>clean package</defaultGoal>
<resources>

View File

@ -57,6 +57,7 @@ public class Plugin extends PluginBase {
.collect(Collectors.toSet());
for (Class<? extends CustomItem> clazz : items) {
getLogger().info("§aLoading custom item " + clazz + "...");
try {
Item.registerCustomItem(clazz).assertOK();
} catch (AssertionError e) {
@ -72,6 +73,7 @@ public class Plugin extends PluginBase {
.collect(Collectors.toSet());
for (Class<? extends Entity> clazz : entities) {
getLogger().info("§aLoading custom entity " + clazz + "...");
try {
Entity.registerCustomEntity(new CustomClassEntityProvider(clazz)).assertOK();
entities.add(clazz);