[1.9-1.16] Custom Recipes and Crafting (CraftEnhance)

[1.9-1.16] Custom Recipes and Crafting (CraftEnhance)

44.3k Downloads

Bug on paper 1.21

KIRUYXAN opened this issue ยท 0 comments

commented

Describe the bug
I have a server on 1.21 and when starting this plugin it gives errors. Update it.
To Reproduce
Steps to reproduce the behavior:

  1. run on 1.21
  2. see errors

Show console logs
[18:24:54 WARN]: [CraftEnhance] It is not tested on versions beyond 1.19.4
[18:24:54 ERROR]: Error occurred while enabling CraftEnhance v2.5.9 (Is it up to date?)
java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at CraftEnhance-2.5.9.jar/craftenhance.libs.menulib.dependencies.nbt.nbtapi.utils.MinecraftVersion.getVersion(MinecraftVersion.java:110) ~[CraftEnhance-2.5.9.jar:?]
at CraftEnhance-2.5.9.jar/craftenhance.libs.menulib.dependencies.nbt.nbtapi.metodes.RegisterNbtAPI.(RegisterNbtAPI.java:13) ~[CraftEnhance-2.5.9.jar:?]
at CraftEnhance-2.5.9.jar/craftenhance.libs.menulib.RegisterMenuAPI.(RegisterMenuAPI.java:53) ~[CraftEnhance-2.5.9.jar:?]
at CraftEnhance-2.5.9.jar/com.dutchjelly.craftenhance.CraftEnhance.onEnable(CraftEnhance.java:88) ~[CraftEnhance-2.5.9.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.jar:1.21-15-2df432f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.jar:1.21-15-2df432f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:629) ~[paper-1.21.jar:1.21-15-2df432f]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:578) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:690) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:452) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:327) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1157) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-15-2df432f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[18:24:54 INFO]: [CraftEnhance] Disabling CraftEnhance v2.5.9
[18:24:55 INFO]: Loaded 1290 recipes
[18:24:55 INFO]: Loaded 1399 advancements
[18:24:56 ERROR]: Error occurred while disabling CraftEnhance v2.5.9
java.lang.NullPointerException: Cannot invoke "com.dutchjelly.craftenhance.crafthandling.RecipeInjector.getContainerOwners()" because "this.injector" is null
at CraftEnhance-2.5.9.jar/com.dutchjelly.craftenhance.CraftEnhance.onDisable(CraftEnhance.java:139) ~[CraftEnhance-2.5.9.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) ~[paper-1.21.jar:1.21-15-2df432f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) ~[paper-1.21.jar:1.21-15-2df432f]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:550) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:206) ~[paper-1.21.jar:1.21-15-2df432f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.jar:1.21-15-2df432f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:629) ~[paper-1.21.jar:1.21-15-2df432f]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:578) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:690) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:452) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:327) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1157) ~[paper-1.21.jar:1.21-15-2df432f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-15-2df432f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]