made ItemRailingTransfer accept node instead of Part

This commit is contained in:
tgame14 2014-04-17 13:15:41 +03:00
parent d5648b2fba
commit dff9049ea2
3 changed files with 8 additions and 2 deletions

View file

@ -22,7 +22,7 @@ public class ItemRailingTransfer implements IItemRailingTransfer
{
this.stack = stack.copy();
this.color = EnumColor.ORANGE;
this.railing = railing;
this.railing = railing.getNode();
}
public ItemRailingTransfer(Item item, PartRailing railing)

View file

@ -29,6 +29,7 @@ public class NodeRailing extends Node<PartRailing, GridRailing, NodeRailing> imp
{
super(parent);
this.itemNodeSet = new HashSet<IItemRailingTransfer>();
this.color = null;
}
@Override

View file

@ -38,7 +38,12 @@ public class PartRailing extends PartFramedConnection<PartRailing.EnumRailing, I
DEFAULT, EXTENTION;
}
// default is NULL
public NodeRailing getNode()
{
return node;
}
// default is NULL
private NodeRailing node;
public PartRailing ()