Fix warded block duplication

This commit is contained in:
mDiyo committed 2013-08-31 00:21:25 -07:00
1 parent 861014f7cf
commit 27b0bc70b8
3 files changed
+44 -23

No files matched your search

@@ -51,6 +51,24 @@ public class GlassBlockItem extends ItemBlock
if (camo != null)
list.add("Camoflauge: " + camo.getDisplayName());
}
if (stack.getTagCompound().hasKey("Placement"))
{
String string = getDirectionString(stack.getTagCompound().getByte("Placement"));
list.add("Placement Direction: " + string);
}
}
}
String getDirectionString(byte key)
{
if (key == 0)
return ("Up");
if (key == 1)
return ("Right");
if (key == 2)
return ("Down");
return "Left";
}
}