mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Fix warded block duplication
This commit is contained in:
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";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user