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

Cosmetics are not applying onto Helms with custom enchants on them. #272

Open
4 tasks done
MashesB opened this issue Nov 9, 2024 · 0 comments
Open
4 tasks done
Labels
type: bug Something isn't working

Comments

@MashesB
Copy link

MashesB commented Nov 9, 2024

Terms

  • I'm using the very latest version of CosmeticsCore and its dependencies.
  • I already searched on this Github page to check if the same issue was already reported.
  • I already searched on the plugin wiki to know if a solution is already known.
  • I already searched on the Discord server to know if anyone already provided a solution in the past for the issue.

Discord tag (optional)

MashesB#0775

What happened?

When a players has a helmet with custom enchants (Echo Enchants Plugin) on it and is equipped in the helm slot the wardrobe room does no function correctly. It will show that the cosmetic helm is being applied but once u leave the wardrobe room the cosmetic isn't applied to the player. the plugin then glitches, leaves some error msgs in the console and you can see yourself in the wardrobe room with the cosmetic on while looking in.

Steps to reproduce the issue

1: Go into wardrobe room
2: Apply cosmetic Helm onto a helmet with custom enchants (Echo Enchants Plugin)
3: Leave wardrobe room (notice no cosmetic is applied)
4: A copy of the player will be in the wardrobe room with the cosmetic applied

Server version

Current: git-Purpur-2176 (MC: 1.20.4)*

CosmeticsCore Version

1.3.0-release-1

(R2 doesn't work for me, I have the same issue with that version that others are posting about in Discord and Github)

ProtocolLib Version

ProtocolLib version 5.3.0

LoneLibs Version

LoneLibs version 1.0.59

FULL server log

latest.log

Error (optional)

[11:51:02 WARN]: [CosmeticsCore] Task #322802 for CosmeticsCore v1.3.0-release-1 generated an exception
java.lang.ClassCastException: class io.papermc.paper.adventure.AdventureComponent cannot be cast to class net.minecraft.network.chat.IChatMutableComponent (io.papermc.paper.adventure.AdventureComponent and net.minecraft.network.chat.IChatMutableComponent are in unnamed module of loader java.net.URLClassLoader @7e32c033)
        at dev.lone.cosmeticscore.nms.aH.impl.v1_20_4.a(SourceFile:378) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
        at dev.lone.cosmeticscore.nms.aH.impl.v1_20_4.a(SourceFile:376) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.nms.aH.impl.v1_20_4.a(SourceFile:224) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.y.a(SourceFile:165) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.y.c(SourceFile:145) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.y.m(SourceFile:93) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.y.a(SourceFile:103) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.y.setColor(SourceFile:38) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.y.<init>(SourceFile:31) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.af.a(SourceFile:42) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.j.a(SourceFile:542) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.l.D(SourceFile:155) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at dev.lone.cosmeticscore.main.l.K(SourceFile:221) ~[CosmeticsCore_1.3.0-release-1.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1679) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:487) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1558) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1246) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]

CosmeticsCore config.yml

cosmetics:
  evergreen_crown_cosmetic:
    enabled: true
    display_name: " Evergreen Crown  [Cosmetic]"
    type: HAT
    model:
      gui: evergreenset:evergreen_crown
      normal: evergreenset:evergreen_crown
    dye:
      enabled: false

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

2024-11-09.12-11-38.mp4
@MashesB MashesB added the type: bug Something isn't working label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant