Create a sort order for interfaces based on their location.
This commit is contained in:
@@ -1045,4 +1045,10 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
|
||||
|
||||
return "Nothing";
|
||||
}
|
||||
|
||||
public long getSortValue()
|
||||
{
|
||||
TileEntity te = iHost.getTileEntity();
|
||||
return (te.zCoord << 24) ^ (te.xCoord << 8) ^ te.yCoord;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user