mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 12:32:13 +00:00
Fixed Seismic Reader reading wrong x and z coords
This commit is contained in:
1 parent
c52d41383f
commit
2e79f61642
2 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user