mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-29 00:09:17 +00:00
Always use the original item's NBT when creating hand chisel GUI
This commit is contained in:
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++;
|
||||
|
||||
Reference in new issue
Block a user