Skip to content

Tried to load invalid item Not a boolean: 0, missed input #11077

@ghost

Description

Expected behavior

An itemstack serialized 1.20.4 should correctly load in 1.21 without errors.

Observed/Actual behavior

on 1.20.4:

Base64.getEncoder().encodeToString(Bukkit.getUnsafe().serializeItem(shulker))

the base64 string: https://0bin.net/paste/gCNq3q2J#fdoLN9dS1PAzhj8eBqeOrnp-xihURktdcDNq1nGLw4a

on 1.21
Bukkit.getUnsafe().deserializeItem(Base64.getDecoder().decode(string));

console error: https://0bin.net/paste/o2chIszJ#52v2olu-s1gmuI/T6IOWtt9OJp3CIgjIu7DgXVqxAyG

The item appears to deserialize correctly, but the console error is still printed, very odd.

Steps/models to reproduce

Encode an item using Bukkit.getUnsafe().serializeItem in 1.20.4

decode said item in 1.21

Plugin and Datapack List

N/A

Paper version

1.21 34a2917

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.

    Type

    No fields configured for Bug.

    Projects

    Status

    ✅ Accepted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions