BukkitObjectInputStream::readObject doesn't work with typed spawner

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:
    • CraftBukkit version 4109-Spigot-b698b49-8c1e7c8 (MC: 1.20.5)
    • Yes

      Description
      If you control-click a spawner that has an assigned type, serialize it using the BukkitObjectOutputStream, then deserialize it using the BukkitObjectInputStream, an error will be thrown. This could be a wider issue than just spawners but I find that it reliably gives me an error with spawners.

      (See attached files for logs)

      Test plugin:
      1. Use 1.20.5
      2. Install test plugin
      3. Run "/serializationtest" with a typed spawner in your main hand
      4. Error should appear in console

      (See attached plugin for testing)

            Assignee:
            md_5
            Reporter:
            TechnicallyCoded
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: