Potential fix for routing nodes (I changed nothing, but it now works). Fixed blocks that are solid that did not block sunlight.
This commit is contained in:
parent
0a2dfb4fd4
commit
8571d4d264
8 changed files with 155 additions and 12 deletions
|
@ -136,7 +136,7 @@ public class TileMasterRoutingNode extends TileInventory implements IMasterRouti
|
|||
|
||||
public int getMaxTransferForDemonWill(double will)
|
||||
{
|
||||
return 8 + (int) (will / 25);
|
||||
return 8;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -381,6 +381,15 @@ public class TileMasterRoutingNode extends TileInventory implements IMasterRouti
|
|||
@Override
|
||||
public void removeAllConnections()
|
||||
{
|
||||
// Empty
|
||||
for (BlockPos testPos : generalNodeList)
|
||||
{
|
||||
TileEntity tile = worldObj.getTileEntity(testPos);
|
||||
if (tile instanceof IRoutingNode)
|
||||
{
|
||||
((IRoutingNode) tile).removeConnection(pos);
|
||||
this.removeConnection(testPos);
|
||||
getWorld().notifyBlockUpdate(getPos(), getWorld().getBlockState(testPos), getWorld().getBlockState(testPos), 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ public class TileRoutingNode extends TileInventory implements IRoutingNode, IIte
|
|||
if (tile instanceof IRoutingNode)
|
||||
{
|
||||
((IRoutingNode) tile).removeConnection(pos);
|
||||
getWorld().notifyBlockUpdate(getPos(), getWorld().getBlockState(getPos()), getWorld().getBlockState(getPos()), 3);
|
||||
getWorld().notifyBlockUpdate(getPos(), getWorld().getBlockState(testPos), getWorld().getBlockState(testPos), 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue