Add Simply Jetpacks
This commit is contained in:
@@ -24,6 +24,7 @@ exports.DefaultMods =
|
||||
mekanism: { defaultVersion: '7.1.1.127' }
|
||||
modular_powersuits: { defaultVersion: '0.11.0.176' }
|
||||
railcraft: { defaultVersion: '9.5.0' }
|
||||
simply_jetpacks: { defaultVersion: '1.4.1' }
|
||||
thermal_dynamics: { defaultVersion: '1.0.0RC7-98' }
|
||||
thermal_expansion: { defaultVersion: '4.0.0B8-23' }
|
||||
ender_storage: { defaultVersion: '1.4.5.29' }
|
||||
|
||||
@@ -15,7 +15,9 @@ module.exports = class ItemSlug
|
||||
@_item = @_mod = null
|
||||
|
||||
if arguments.length is 1
|
||||
@item = arguments[0]
|
||||
parts = _.decomposeSlug arguments[0]
|
||||
@_mod = _.slugify parts[0]
|
||||
@item = _.slugify parts[1]
|
||||
else if arguments.length is 2
|
||||
@_mod = arguments[0]
|
||||
@item = arguments[1]
|
||||
|
||||
@@ -139,13 +139,21 @@ module.exports = class ModVersion extends BaseModel
|
||||
findRecipes: (itemSlug, result=[], options={})->
|
||||
options.onlyPrimary ?= false
|
||||
|
||||
primaryRecipes = []
|
||||
otherRecipes = []
|
||||
|
||||
for recipe in _.values @_recipes
|
||||
if options.onlyPrimary
|
||||
if recipe.itemSlug.matches itemSlug
|
||||
result.push recipe
|
||||
else
|
||||
if recipe.produces itemSlug
|
||||
result.push recipe
|
||||
if recipe.itemSlug.matches itemSlug
|
||||
primaryRecipes.push recipe
|
||||
else if recipe.produces itemSlug
|
||||
otherRecipes.push recipe
|
||||
|
||||
for recipe in primaryRecipes
|
||||
result.push recipe
|
||||
|
||||
if not options.onlyPrimary
|
||||
for recipe in otherRecipes
|
||||
result.push recipe
|
||||
|
||||
return result
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ module.exports = class ModVersionParserV1 extends CommandParserVersionBase
|
||||
if item? and item.type isnt 'update'
|
||||
slug = new ItemSlug modVersion.modSlug, _.slugify name
|
||||
else
|
||||
slug = new ItemSlug _.slugify name
|
||||
slug = new ItemSlug name
|
||||
modVersion.registerName slug, name
|
||||
return slug
|
||||
|
||||
|
||||
Reference in New Issue
Block a user