Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException when displaying player_head in crate #612

Open
wmcdevx opened this issue Dec 8, 2024 · 0 comments
Open

IllegalArgumentException when displaying player_head in crate #612

wmcdevx opened this issue Dec 8, 2024 · 0 comments

Comments

@wmcdevx
Copy link

wmcdevx commented Dec 8, 2024

mc version 1.21.1
When trying to display a player head with a specific skull texture in a crate it gives an IllegalArgumentException and the skull texture reverts to the default Steve head texture.

[00:21:59] [Server thread/WARN]: java.lang.IllegalArgumentException: Can not set net.minecraft.world.item.component.ResolvableProfile field org.bukkit.craftbukkit.inventory.CraftMetaSkull.profile to com.mojang.authlib.GameProfile
[00:21:59] [Server thread/WARN]: 	at java.base/jdk.internal.reflect.FieldAccessorImpl.throwSetIllegalArgumentException(FieldAccessorImpl.java:228)
[00:21:59] [Server thread/WARN]: 	at java.base/jdk.internal.reflect.FieldAccessorImpl.throwSetIllegalArgumentException(FieldAccessorImpl.java:232)
[00:21:59] [Server thread/WARN]: 	at java.base/jdk.internal.reflect.MethodHandleObjectFieldAccessorImpl.set(MethodHandleObjectFieldAccessorImpl.java:115)
[00:21:59] [Server thread/WARN]: 	at java.base/java.lang.reflect.Field.set(Field.java:836)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.eK.a(HeadTexture.java:42)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.eL.c(ItemParser.java:187)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.eL.aa(ItemParser.java:106)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.bw.c(RewardParser.java:73)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.bw.<init>(RewardParser.java:26)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.dl.<init>(RewardImpl.java:42)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.dv.a(YamlCrateParserImpl.java:247)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.dv.b(YamlCrateParserImpl.java:110)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.dv.c(YamlCrateParserImpl.java:57)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.dv.b(YamlCrateParserImpl.java:47)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.aP.br(CrateHandler.java:81)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.aP.bq(CrateHandler.java:71)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//crate.aP.<init>(CrateHandler.java:63)
[00:21:59] [Server thread/WARN]: 	at CrateReloaded.jar//com.hazebyte.crate.cratereloaded.CorePlugin.onEnable(CorePlugin.java:188)
[00:21:59] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288)
[00:21:59] [Server thread/WARN]: 	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202)
[00:21:59] [Server thread/WARN]: 	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109)
[00:21:59] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520)
[00:21:59] [Server thread/WARN]: 	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:654)
[00:21:59] [Server thread/WARN]: 	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:603)
[00:21:59] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:757)
[00:21:59] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:519)
[00:21:59] [Server thread/WARN]: 	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:366)
[00:21:59] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1230)
[00:21:59] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333)
[00:21:59] [Server thread/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:1583)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant