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

Exception when initializing Font in Paper build 78+ #1494

Open
Jyguy opened this issue Sep 20, 2024 · 0 comments
Open

Exception when initializing Font in Paper build 78+ #1494

Jyguy opened this issue Sep 20, 2024 · 0 comments
Labels

Comments

@Jyguy
Copy link

Jyguy commented Sep 20, 2024

When initializing a Label component with a Font, an exception occurs. This only happens in Paper 1.21.1 builds 78 and above.

Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.world.item.component.ResolvableProfile field org.bukkit.craftbukkit.inventory.CraftMetaSkull.profile to com.mojang.authlib.GameProfile
	at java.base/jdk.internal.reflect.FieldAccessorImpl.throwSetIllegalArgumentException(FieldAccessorImpl.java:228) ~[?:?]
	at java.base/jdk.internal.reflect.FieldAccessorImpl.throwSetIllegalArgumentException(FieldAccessorImpl.java:232) ~[?:?]
	at java.base/jdk.internal.reflect.MethodHandleObjectFieldAccessorImpl.set(MethodHandleObjectFieldAccessorImpl.java:115) ~[?:?]
	at java.base/java.lang.reflect.Field.set(Field.java:836) ~[?:?]
	at Chronova-paper-1.0.0.jar/xyz.reknown.chronova.if.util.SkullUtil.setSkull(SkullUtil.java:65) ~[Chronova-paper-1.0.0.jar:?]
	at Chronova-paper-1.0.0.jar/xyz.reknown.chronova.if.util.SkullUtil.getSkull(SkullUtil.java:43) ~[Chronova-paper-1.0.0.jar:?]
	at Chronova-paper-1.0.0.jar/xyz.reknown.chronova.if.font.CSVFont.lambda$new$1(CSVFont.java:46) ~[Chronova-paper-1.0.0.jar:?]
	at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180) ~[?:?]
	at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:?]
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708) ~[?:?]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants