Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-164038

Serializer for storage nbt component is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w44a
    • 19w42a
    • Confirmed
    • Commands, Crash
    • Important

      Steps to reproduce

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

        An unexpected error occurred trying to execute that command

      3. 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) [?:?]
        

            boq [Mojang] Bartosz Bok
            intsuc intsuc
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: