Fixed gutter side rendering
This commit is contained in:
parent
cee4f2f4d7
commit
9b19f8ca61
1 changed files with 14 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue