From 42bfc549befb9e43b79d9f82d0a6add3b9a37cf5 Mon Sep 17 00:00:00 2001 From: Gunther De Wachter Date: Sat, 24 Jun 2017 15:01:06 +0200 Subject: [PATCH] Fixed drawing of items in storage. An ItemStack count of 0 trips the check for isEmpty and hence doesn't give us the item we want. --- src/main/java/appeng/util/item/AEItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/appeng/util/item/AEItemStack.java b/src/main/java/appeng/util/item/AEItemStack.java index 969bd4b29..f6288a0be 100644 --- a/src/main/java/appeng/util/item/AEItemStack.java +++ b/src/main/java/appeng/util/item/AEItemStack.java @@ -164,7 +164,7 @@ public final class AEItemStack extends AEStack implements IAEItemS short itemNumericId = data.readShort(); d.setString( "id", String.valueOf( itemNumericId ) ); d.setShort( "Damage", data.readShort() ); - d.setByte( "Count", (byte) 0 ); + d.setByte( "Count", (byte) 1 ); if( hasTagCompound ) {