Fixed Seismic Reader, fixed Cardboard Box tooltip

This commit is contained in:
aidancbrady committed 2017-04-12 21:49:31 -04:00
1 parent 0b6bf0ab43
commit 4adbc332f9
2 files changed
+3 -3

No files matched your search

@@ -143,7 +143,7 @@ public class GuiSeismicReader extends GuiScreen
// Get the name from the stack and render it
if(currentLayer - 1 >= 0)
{
ItemStack nameStack = new ItemStack(blockList.get(currentLayer - 1).getRight(), 0, blockList.get(currentLayer - 1).getLeft());
ItemStack nameStack = new ItemStack(blockList.get(currentLayer - 1).getRight(), 1, blockList.get(currentLayer - 1).getLeft());
String renderString = "unknown";
if(nameStack.getItem() != null)
@@ -229,7 +229,7 @@ public class GuiSeismicReader extends GuiScreen
public void calculate()
{
for(BlockPos p = new BlockPos(pos.zCoord, 0, pos.zCoord); p.getY() < pos.yCoord; p = p.up())
for(BlockPos p = new BlockPos(pos.xCoord, 0, pos.zCoord); p.getY() < pos.yCoord; p = p.up())
{
IBlockState state = worldObj.getBlockState(p);
Block block = state.getBlock();
@@ -54,7 +54,7 @@ public class ItemBlockCardboardBox extends ItemBlock
if(data != null)
{
try {
list.add(LangUtils.localize("tooltip.block") + ": " + new ItemStack(data.block, data.meta).getDisplayName());
list.add(LangUtils.localize("tooltip.block") + ": " + new ItemStack(data.block, 1, data.meta).getDisplayName());
list.add(LangUtils.localize("tooltip.meta") + ": " + data.meta);
if(data.tileTag != null)