-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Description (Required)
PlayerHeadAdapter20v5 fails to find skull NBT methods.
Steps to reproduce the Issue (Required)
Launch Slimefun in 1.21.8
Expected behavior (Required)
Server Log / Error Report
java.lang.NoSuchMethodException: net.minecraft.server.level.ServerLevel.getBlockEntity(net.minecraft.core.BlockPos,boolean)
at java.base/java.lang.Class.getMethod(Class.java:2395) ~[?:?]
at io.papermc.reflectionrewriter.runtime.AbstractDefaultRulesReflectionProxy.getMethod(AbstractDefaultRulesReflectionProxy.java:100) ~[reflection-rewriter-runtime-0.0.3.jar:?]
at io.papermc.paper.pluginremap.reflect.PaperReflectionHolder.getMethod(Unknown Source) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.libraries.dough.skins.nms.PlayerHeadAdapter20v5.(PlayerHeadAdapter20v5.java:33) ~[Slimefun-8d9f1a12.jar:?]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.libraries.dough.skins.nms.PlayerHeadAdapter.get(PlayerHeadAdapter.java:28) ~[Slimefun-8d9f1a12.jar:?]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.libraries.dough.skins.PlayerHead.(PlayerHead.java:23) ~[Slimefun-8d9f1a12.jar:?]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.utils.SlimefunUtils.getCustomHead(SlimefunUtils.java:245) ~[Slimefun-8d9f1a12.jar:?]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.core.services.localization.Language.(Language.java:52) ~[Slimefun-8d9f1a12.jar:?]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.core.services.LocalizationService.(LocalizationService.java:67) ~[Slimefun-8d9f1a12.jar:?]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.implementation.Slimefun.onPluginStart(Slimefun.java:300) ~[Slimefun-8d9f1a12.jar:?]
at Slimefun-8d9f1a12.jar/io.github.thebusybiscuit.slimefun4.implementation.Slimefun.onEnable(Slimefun.java:241) ~[Slimefun-8d9f1a12.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[purpur-api-1.21.8-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[purpur-api-1.21.8-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:666) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:622) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:746) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:491) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:314) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1179) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:313) ~[purpur-1.21.8.jar:1.21.8-2493-07108b7]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Server specs (Required)
Purpur 1.21.8-2493-HEAD
Is there any reason to still be using NMS for skull textures? Paper already has a front-end version of this method with
Bukkit#getOfflinePlayer(UUID id), OfflinePlayer#getPlayerProfile(), PlayerProfile#complete() and SkullMeta#setPlayerProfile(PlayerProfile profile),
and SF has already moved to exclusively support paper.