Create

Create

101M Downloads

enchantments in items filter dissapearing after applying

tekutora opened this issue ยท 2 comments

commented

Description

put enchanted sword in item filter and use respect data >
apply filter and put it in deployer >
filter not working >
take filter from deployer
open and see that item that i putted in there are not enchanted

Base.Profile.2024.12.15.-.21.25.43.02.1.mp4

Game Log

dasdsaasd

Debug Information

No response

commented

Introduced in fa5b71b, notice how the Enchantments and AttributeModifier data is removed before the checks for whether the itemstack is a filter/attribute filter:

public static FilterItemStack of(ItemStack filter) {
if (filter.hasTag()) {
CompoundTag stackTag = filter.getTag();
stackTag.remove("Enchantments");
stackTag.remove("AttributeModifiers");
if (AllItems.FILTER.isIn(filter))
return new ListFilterItemStack(filter);
if (AllItems.ATTRIBUTE_FILTER.isIn(filter))
return new AttributeFilterItemStack(filter);
}
return new FilterItemStack(filter);

commented

so what should i do