Fixed gutter side rendering

This commit is contained in:
Calclavia 2014-03-07 22:40:23 -08:00
parent cee4f2f4d7
commit 9b19f8ca61

View file

@ -45,6 +45,8 @@ public class TileGutter extends TilePressurizedNode
synchronized (connections)
{
connections.clear();
byte previousConnections = renderSides;
renderSides = 0;
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS)
{
@ -65,11 +67,16 @@ public class TileGutter extends TilePressurizedNode
}
else
{
renderSides = WorldUtility.setEnableSide(renderSides, dir, true);
connections.put(tile, dir);
}
}
}
/** Only send packet updates if visuallyConnected changed. */
if (previousConnections != renderSides)
{
sendRenderUpdate();
}
}
}
@ -127,6 +134,12 @@ public class TileGutter extends TilePressurizedNode
return list;
}
@Override
public Cuboid getSelectBounds()
{
return null;
}
@Override
public void collide(Entity entity)
{