Always use the original item's NBT when creating hand chisel GUI

This commit is contained in:
Kynake committed 2026-11-28 16:23:11 -03:00
1 parent aebb0f7083
commit db2d2622e1
1 file changed
+3 -6
@@ -148,12 +148,9 @@ public class InventoryChiselSelection implements IInventory {
!= null) {
ItemStack variationTemplate = list.get(activeVariations + currentScroll);
// Preserve the original's NBT tags
if (chiseledItem.hasTagCompound()) {
variationTemplate = variationTemplate.copy();
// We can defer the deep copy the NBT object until the player actually chisels the item
variationTemplate.setTagCompound(chiseledItem.getTagCompound());
}
// We can defer the deep copy of the NBT object until the player actually chisels the item
variationTemplate = variationTemplate.copy();
variationTemplate.setTagCompound(chiseledItem.getTagCompound());
inventory[activeVariations] = variationTemplate;
activeVariations++;