Fixed packets being sent client side, attempted to fix a multiblock connection issue with turbines
This commit is contained in:
parent
6c67feb482
commit
bd6aa3453e
|
@ -56,10 +56,13 @@ public abstract class TileMechanical extends TileBase implements INodeProvider,
|
|||
{
|
||||
super.updateEntity();
|
||||
mechanicalNode.update();
|
||||
if (mechanicalNode.markRotationUpdate && ticks % 10 == 0)
|
||||
if (!this.getWorldObj().isRemote)
|
||||
{
|
||||
sendRotationPacket();
|
||||
mechanicalNode.markRotationUpdate = false;
|
||||
if (mechanicalNode.markRotationUpdate && ticks % 10 == 0)
|
||||
{
|
||||
sendRotationPacket();
|
||||
mechanicalNode.markRotationUpdate = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ public class TurbineNode extends MechanicalNode
|
|||
@Override
|
||||
public boolean canConnect(ForgeDirection from, Object source)
|
||||
{
|
||||
return source instanceof MechanicalNode && !(source instanceof TurbineNode) && from == turbine().getDirection().getOpposite();
|
||||
return turbine().getMultiBlock().isPrimary() && source instanceof MechanicalNode && !(source instanceof TurbineNode) && from == turbine().getDirection().getOpposite();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue