Minor fix
This commit is contained in:
parent
93b7321dea
commit
ad38b6f52b
1 changed files with 3 additions and 20 deletions
|
@ -128,6 +128,7 @@ public class BlockBasic extends Block
|
||||||
icons[13][0] = register.registerIcon("mekanism:TinBlock");
|
icons[13][0] = register.registerIcon("mekanism:TinBlock");
|
||||||
icons[14][0] = register.registerIcon("mekanism:SalinationController");
|
icons[14][0] = register.registerIcon("mekanism:SalinationController");
|
||||||
icons[14][1] = register.registerIcon("mekanism:SalinationControllerOn");
|
icons[14][1] = register.registerIcon("mekanism:SalinationControllerOn");
|
||||||
|
icons[14][2] = register.registerIcon("mekanism:SalinationBlock");
|
||||||
icons[15][0] = register.registerIcon("mekanism:SalinationValve");
|
icons[15][0] = register.registerIcon("mekanism:SalinationValve");
|
||||||
|
|
||||||
glassRenderer.registerIcons(register);
|
glassRenderer.registerIcons(register);
|
||||||
|
@ -175,7 +176,7 @@ public class BlockBasic extends Block
|
||||||
return tileEntity.structured ? icons[14][1] : icons[14][0];
|
return tileEntity.structured ? icons[14][1] : icons[14][0];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return icons[12][0];
|
return icons[14][2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -221,7 +222,7 @@ public class BlockBasic extends Block
|
||||||
return icons[14][0];
|
return icons[14][0];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return icons[12][0];
|
return icons[14][2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -430,24 +431,6 @@ public class BlockBasic extends Block
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(blockID == Mekanism.basicBlock2ID)
|
|
||||||
{
|
|
||||||
if(world.isRemote)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(metadata == 0)
|
|
||||||
{
|
|
||||||
TileEntitySalinationTank tank = (TileEntitySalinationTank)world.getBlockTileEntity(x, y, z);
|
|
||||||
|
|
||||||
if(!entityplayer.isSneaking())
|
|
||||||
{
|
|
||||||
entityplayer.openGui(Mekanism.instance, 33, world, x, y, z);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue