mojira.dev
MC-164038

Serializer for storage nbt component is missing

Steps to reproduce

scoreboard objectives add _ dummy {"nbt": "", "storage": ""}
save-all

An unexpected error occurred trying to execute that command

  1. Wait until autosave
    ❌ The server crashes

    Encountered an unexpected exception
    java.lang.IllegalArgumentException: Don't know how to serialize StorageNbtComponent{id='minecraft:'path='', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}} as a Component
    	at lc$a.a(SourceFile:377) ~[server.jar:?]
    	at lc$a.serialize(SourceFile:175) ~[server.jar:?]
    	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81) ~[server.jar:?]
    	at com.google.gson.Gson.toJson(Gson.java:669) ~[server.jar:?]
    	at com.google.gson.Gson.toJson(Gson.java:648) ~[server.jar:?]
    	at com.google.gson.Gson.toJson(Gson.java:603) ~[server.jar:?]
    	at com.google.gson.Gson.toJson(Gson.java:583) ~[server.jar:?]
    	at lc$a.a(SourceFile:387) ~[server.jar:?]
    	at cwa.e(SourceFile:224) ~[server.jar:?]
    	at cwa.b(SourceFile:151) ~[server.jar:?]
    	at cqp.a(SourceFile:48) ~[server.jar:?]
    	at cqz.a(SourceFile:121) ~[server.jar:?]
    	at xa.m_(SourceFile:758) ~[server.jar:?]
    	at xa.a(SourceFile:747) ~[server.jar:?]
    	at net.minecraft.server.MinecraftServer.a(SourceFile:547) ~[server.jar:?]
    	at net.minecraft.server.MinecraftServer.a(SourceFile:801) ~[server.jar:?]
    	at net.minecraft.server.MinecraftServer.run(SourceFile:650) [server.jar:?]
    	at java.lang.Thread.run(Thread.java:830) [?:?]

Linked issues

Attachments

Comments 0

No comments.

intsuc

boq

Confirmed

Important

Commands, Crash

component

19w42a

19w44a

Retrieved