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

[1.19.2] Server sometimes crashes when a player gets an advancement #108

Open
Eir-nya opened this issue Feb 2, 2024 · 0 comments
Open

Comments

@Eir-nya
Copy link

Eir-nya commented Feb 2, 2024

Description: I have D4F enabled in a server I run. Messaging and the chat relay all seem to work fine. When "announce_advancement" is set to true in the config, some advancements are successfully sent to the discord chat, but some aren't. I'm not currently sure of the distinction. When this happens, the server crashes with an error.

Error message:

[20:21:06] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.class_148: Ticking entity
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:879) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_3176.method_3813(class_3176.java:289) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:819) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:665) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:209) ~[?:?]
	at java.util.ImmutableCollections$MapN.containsKey(ImmutableCollections.java:1200) ~[?:?]
	at me.reimnop.d4f.utils.Utils.getPlaceholderHandler(Utils.java:89) ~[transformed-mod-d4f.i0:0/:?]
	at me.reimnop.d4f.listeners.MinecraftEventListeners.lambda$init$3(MinecraftEventListeners.java:88) ~[transformed-mod-d4f.i0:0/:?]
	at eu.pb4.placeholders.api.Placeholders$PlaceholderGetter.exists(Placeholders.java:207) ~[transformed-mod-placeholder-api.i0:0/:?]
	at eu.pb4.placeholders.impl.placeholder.NodePlaceholderParserImpl.recursivePlaceholderParsing(NodePlaceholderParserImpl.java:51) ~[transformed-mod-placeholder-api.i0:0/:?]
	at eu.pb4.placeholders.impl.placeholder.NodePlaceholderParserImpl.recursivePlaceholderParsing(NodePlaceholderParserImpl.java:72) ~[transformed-mod-placeholder-api.i0:0/:?]
	at eu.pb4.placeholders.impl.placeholder.NodePlaceholderParserImpl.recursivePlaceholderParsing(NodePlaceholderParserImpl.java:72) ~[transformed-mod-placeholder-api.i0:0/:?]
	at eu.pb4.placeholders.api.Placeholders.parseNodes(Placeholders.java:72) ~[transformed-mod-placeholder-api.i0:0/:?]
	at eu.pb4.placeholders.api.Placeholders.parseText(Placeholders.java:125) ~[transformed-mod-placeholder-api.i0:0/:?]
	at me.reimnop.d4f.listeners.MinecraftEventListeners.lambda$init$4(MinecraftEventListeners.java:84) ~[transformed-mod-d4f.i0:0/:?]
	at me.reimnop.d4f.events.PlayerAdvancementCallback.lambda$static$0(PlayerAdvancementCallback.java:11) ~[transformed-mod-d4f.i0:0/:?]
	at net.minecraft.class_2985.handler$ddg000$d4f$grantCriterion(class_2985.java:2524) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_2985.method_12878(class_2985.java:207) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_179$class_180.method_796(class_179.java:35) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_4558.method_22510(class_4558.java:74) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_2115.method_9097(class_2115.java:27) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_1309.method_5643(class_1309.java:1225) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_1665.method_7454(class_1665.java:373) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_1676.method_7488(class_1676.java:149) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_1665.method_5773(class_1665.java:226) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_1667.method_5773(class_1667.java:104) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_3218.method_18762(class_3218.java:712) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_1937.method_18472(class_1937.java:466) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_3218.method_31420(class_3218.java:371) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_5574.method_31791(class_5574.java:54) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.class_3218.method_18765(class_3218.java:339) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:875) ~[transformed-mod-minecraft-v1.19.2.jar:?]
	... 5 more

Minecraft version: 1.19.2

D4F version: 1.10.1-1.19.2

List of mods (server)

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