Pointing connected Railing to node for logic queries

This commit is contained in:
tgame14 2014-04-17 13:11:54 +03:00
parent 1ba7f878c4
commit d5648b2fba
2 changed files with 1 additions and 5 deletions

View file

@ -39,14 +39,11 @@ public class PartRailing extends PartFramedConnection<PartRailing.EnumRailing, I
}
// default is NULL
private EnumColor color;
private NodeRailing node;
public PartRailing ()
{
super(Electrical.itemInsulation);
this.color = null;
}
@ -112,7 +109,7 @@ public class PartRailing extends PartFramedConnection<PartRailing.EnumRailing, I
@Override
protected boolean canConnectTo (TileEntity tile, ForgeDirection to)
{
return tile instanceof IItemRailing ? canConnectToRailing((IItemRailing) tile, to) : tile instanceof IInventory ? true : false;
return tile instanceof IItemRailing ? node.canConnectToRailing((IItemRailing) tile, to) : tile instanceof IInventory ? true : false;
}
@Override

View file

@ -11,7 +11,6 @@ import universalelectricity.api.vector.VectorWorld;
* @since 16/03/14
* @author tgame14
*/
// TODO: Fix up IVectorWorld implementation to somehow overturn error with ChickenBones Multiparts returning doubles
public interface IItemRailing
{
public boolean canItemEnter (IItemRailingTransfer item);