mortuusars / Scholar

4 stars 1 forks source link

[1.20.1] Cannot Sign Books #8

Open Epik-B0mber opened 5 months ago

Epik-B0mber commented 5 months ago

I'm running a 1.20.1 hybrid server (the probable cause), and I just got this mod in hopes of having a gay ole time with making lots of fun books as writing is a core part of my server. Everything seems to work so far, except the fact that books cannot be signed and closed thanks to this error. Hope this helps with future endeavors!

Signing Book failed: java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_20_R1.inventory.CraftMetaItem cannot be cast to class org.bukkit.inventory.meta.BookMeta (org.bukkit.craftbukkit.v1_20_R1.inventory.CraftMetaItem and org.bukkit.inventory.meta.BookMeta are in module forge@47.2.32 of loader 'TRANSFORMER' @377dbc50)

mortuusars commented 5 months ago

I'm not sure I can fix it from my side. My guess is that bukkit expects any book to be a BookMeta (which they probably attach to vanilla books somehow, I haven't found in their code where exactly). Scholar's books definitely don't implement that interface (BookMeta) and it fails when they try to do something on book signing.