Fix QuartzKnife GUI input text-field interaction.

This commit is contained in:
Sebastian Hartte
2020-06-19 00:08:02 +02:00
parent f733a73d62
commit 3faa3db2b6
2 changed files with 34 additions and 9 deletions
@@ -36,6 +36,7 @@ import appeng.container.ContainerLocator;
import appeng.container.slot.SlotOutput;
import appeng.container.slot.SlotRestrictedInput;
import appeng.items.contents.QuartzKnifeObj;
import appeng.items.materials.ItemMaterial;
import appeng.tile.inventory.AppEngInternalInventory;
import appeng.util.Platform;
@@ -120,7 +121,7 @@ public class ContainerQuartzKnife extends AEBaseContainer {
if (ContainerQuartzKnife.this.myName.length() > 0) {
return AEApi.instance().definitions().materials().namePress().maybeStack(1).map(namePressStack -> {
final CompoundNBT compound = namePressStack.getOrCreateTag();
compound.putString("InscribeName", ContainerQuartzKnife.this.myName);
compound.putString(ItemMaterial.TAG_INSCRIBE_NAME, ContainerQuartzKnife.this.myName);
return namePressStack;
}).orElse(ItemStack.EMPTY);