Added support for cloth color with the super pickaxe drops.

This commit is contained in:
sk89q
2011-01-17 20:30:54 -08:00
parent 75c21623da
commit a63ffc2fe4
5 changed files with 43 additions and 59 deletions

View File

@@ -107,7 +107,7 @@ public class ChestBlock extends BaseBlock implements TileEntityBlock {
if (item != null) {
Map<String,Tag> data = new HashMap<String,Tag>();
CompoundTag itemTag = new CompoundTag("Items", data);
data.put("id", new ShortTag("id", item.getID()));
data.put("id", new ShortTag("id", (short)item.getType()));
data.put("Damage", new ShortTag("Damage", item.getDamage()));
data.put("Count", new ByteTag("Count", (byte)item.getAmount()));
data.put("Slot", new ByteTag("Slot", (byte)i));