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

java.lang.IllegalArgumentException: Registry has no elements! #1

Closed
sasuked opened this issue Jan 9, 2022 · 4 comments
Closed

java.lang.IllegalArgumentException: Registry has no elements! #1

sasuked opened this issue Jan 9, 2022 · 4 comments

Comments

@sasuked
Copy link
Contributor

sasuked commented Jan 9, 2022

I Have tried the ExampleHolograms class from the readme, and it shows a error.

Version: 1.8.8

[HologramLib] Task #6 for HologramLib v1.0.0 generated an exception
java.lang.IllegalArgumentException: Registry has no elements!
        at org.apache.commons.lang.Validate.notEmpty(Validate.java:248) ~[patched.jar:git-PaperSpigot-"4c7641d"]
        at com.comphenix.protocol.wrappers.WrappedDataWatcher$Registry.get(WrappedDataWatcher.java:966) ~[?:?]
        at com.comphenix.protocol.wrappers.WrappedDataWatcher$Registry.getChatComponentSerializer(WrappedDataWatcher.java:1057) ~[?:?]
        at com.github.unldenis.hologram.line.TextLine.update(TextLine.java:64) ~[?:?]
        at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:895) ~[?:1.8.0_312]
        at java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:404) ~[?:1.8.0_312]
        at com.github.unldenis.hologram.Hologram.setLine(Hologram.java:87) ~[?:?]
        at com.github.unldenis.hologram.ExampleHolograms$1.run(ExampleHolograms.java:61) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) ~[patched.jar:git-PaperSpigot-"4c7641d"]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]       
@unldenis
Copy link
Owner

unldenis commented Jan 9, 2022

Are you using the latest version of protocol lib?

@sasuked
Copy link
Contributor Author

sasuked commented Jan 10, 2022

Yes, the lastest provided from spigotmc site.

@unldenis
Copy link
Owner

Ok so maybe something has changed in the packet format.
I'll update you as soon as I have an answer

@unldenis
Copy link
Owner

Solved, I invite you to take a look here. #2

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

2 participants