add block bounds to cable
This commit is contained in:
@@ -10,6 +10,10 @@ public class BlockCable extends BlockBase
|
||||
public BlockCable()
|
||||
{
|
||||
super("cable");
|
||||
|
||||
float pixel = 1F / 16F;
|
||||
|
||||
setBlockBounds(4 * pixel, 4 * pixel, 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -42,6 +46,12 @@ public class BlockCable extends BlockBase
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isNormalCube()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isVisuallyOpaque()
|
||||
{
|
||||
|
@@ -20,7 +20,7 @@ public class BlockCableRenderer extends TileEntitySpecialRenderer<TileCable>
|
||||
public void renderTileEntityAt(TileCable tile, double x, double y, double z, float scale, int a)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float) x, (float) y, (float) z);
|
||||
GL11.glTranslated(x, y, z);
|
||||
|
||||
model.render(tile);
|
||||
|
||||
|
Reference in New Issue
Block a user