Mojira Archive
MC-275894

Empty itemstacks no longer get created with the correct defaults

Previously ItemStack.EMPTY used new ItemStack((Item) null); which returned AirItem which had the same defaults as all other Item's, however during the change to components ItemStack.EMPTY was changed to use new ItemStack((Void)null) which create a AirItem with DataComponentMap.EMPTY for it's components which leads it's default stack size and stats to be what is specified in the getOrDefault, this seems like a oversight and it should be initalized with DataComponents.COMMON_ITEM_COMPONENTS instead properly giving it the defaults it should get.

Invalid

IThundxr

2024-08-22, 09:07 PM

2024-08-30, 07:18 AM

2024-08-30, 07:18 AM

1

1

Plausible

Commands, Items

1.21.1, 24w34a

-