Fixed Seismic Reader reading wrong x and z coords

This commit is contained in:
Aidan C. Brady 2015-03-23 19:41:27 -04:00
parent c52d41383f
commit 2e79f61642
2 changed files with 3 additions and 3 deletions

View file

@ -477,7 +477,7 @@ public class ClientProxy extends CommonProxy
if(itemStack1 != null && itemStack1.getItem() instanceof ItemSeismicReader)
{
return new GuiSeismicReader(world, new Coord4D(x, y, z, world.provider.dimensionId), itemStack1);
return new GuiSeismicReader(world, new Coord4D(player), itemStack1);
}
case 39:
return new GuiSeismicVibrator(player.inventory, (TileEntitySeismicVibrator)tileEntity);

View file

@ -225,8 +225,8 @@ public class GuiSeismicReader extends GuiScreen
{
for(int y = 0; y < pos.yCoord; y++)
{
Block block = worldObj.getBlock(pos.xCoord - 1, y, pos.zCoord - 1);
int metadata = worldObj.getBlockMetadata(pos.xCoord - 1, y, pos.zCoord - 1);
Block block = worldObj.getBlock(pos.xCoord, y, pos.zCoord);
int metadata = worldObj.getBlockMetadata(pos.xCoord, y, pos.zCoord);
blockList.add(Pair.of(metadata, block));
}