Skip to content

[BUG] 把礼物放在地上后挖出来会让客户崩溃 #847

@Chashao-mao

Description

@Chashao-mao

Describe the bug
Digging up a gift after placing it on the ground will crash the client

Version information
Spectrum Version:1.11.2
Minecraft Version:1.21.1
Mod Loader: NeoForge

Crash Report
[293��2026 22:04:02.708] [Server thread/ERROR] [net.minecraft.Util/]: Error saving [1 spectrum:present]. Original cause: java.lang.IllegalStateException: some keys are not strings: [-1]
With components:
{
spectrum:wrapped_present=>WrappedPresentComponent[variant=RED, colors={-1=1}]
minecraft:profile=>ResolvableProfile[name=Optional[moman_], id=Optional[efecab86-1897-4883-b88e-9485251ad7bf], properties={}, gameProfile=com.mojang.authlib.GameProfile@7b10d44f[id=efecab86-1897-4883-b88e-9485251ad7bf,name=moman_,properties={}]]
minecraft:max_stack_size=>64
minecraft:lore=>ItemLore[lines=[], styledLines=[]]
minecraft:enchantments=>ItemEnchantments{enchantments={}, showInTooltip=true}
minecraft:repair_cost=>0
minecraft:attribute_modifiers=>ItemAttributeModifiers[modifiers=[], showInTooltip=true]
minecraft:rarity=>COMMON
minecraft:bundle_contents=>BundleContents[]
}
With tag: {Slot:7b}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions