Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7631

BukkitObjectInputStream::readObject doesn't work with typed spawner

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 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)

            md_5 md_5
            MathiasTech_jar TechnicallyCoded
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: