OpenInv

4M Downloads

[1.16.5mohist] command /openender unavailable

luoxiawuchen opened this issue ยท 5 comments

commented

image
image

[19:17:20 WARN]: java.lang.InstantiationException: Unable to create a new ISpecialEnderChest: null
[19:17:20 WARN]: at com.lishid.openinv.util.InternalAccessor.newSpecialEnderChest(InternalAccessor.java:196)
[19:17:20 WARN]: at com.lishid.openinv.OpenInv.getSpecialEnderChest(OpenInv.java:216)
[19:17:20 WARN]: at com.lishid.openinv.commands.OpenInvCommand.openInventory(OpenInvCommand.java:165)
[19:17:20 WARN]: at com.lishid.openinv.commands.OpenInvCommand.access$100(OpenInvCommand.java:34)
[19:17:20 WARN]: at com.lishid.openinv.commands.OpenInvCommand$1$1.run(OpenInvCommand.java:92)
[19:17:20 WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:98)
[19:17:20 WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:462)
[19:17:20 WARN]: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1060)
[19:17:20 WARN]: at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
[19:17:20 WARN]: at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:1006)
[19:17:20 WARN]: at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:821)
[19:17:20 WARN]: at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:269)
[19:17:20 WARN]: at java.base/java.lang.Thread.run(Thread.java:829)

I tested on paper without this problem
Personally, I still hope to fix this error
But I know it may not be reasonable
Anyway, thank you for developing and sharing this excellent plugin
Thank you for your patience

commented

Usually I say you're SOL using older versions, but since it literally takes 5 seconds to cherry pick the commit I did do it for this case. You can download a build backporting the trace change from this action run (the dist artifact at the bottom will be a zip file containing the jar) which you then ideally can use to provide the Mohist devs with the info about which mapping needs to be fixed to support OI.

/e actually helps to link the action run, whoops.

commented

For reference, error line is a re-thrown error, so there is guaranteed to be further info in the trace

throw new InstantiationException(String.format("Unable to create a new ISpecialEnderChest: %s", e.getMessage()));

commented

There should be further logs for the error (i.e. Caused by SomeException). This is presumably a missed mapping in Mohist, but without more info they won't be able to fix it.

I am going to close this as it probably isn't a problem OI will be addressing. Mohist is already committed to fixing issues with plugins using NMS on their end and 1.16 is no longer a supported version.

commented

For reference, error line is a re-thrown error, so there is guaranteed to be further info in the trace

throw new InstantiationException(String.format("Unable to create a new ISpecialEnderChest: %s", e.getMessage()));

OK, thanks for your reply

commented

Er wait, I'm an idiot, there is guaranteed not to be any further info in the trace due to the way I did it. Rough, hm. Going to reopen this for future versions I guess.