Add better support for turning mods on/off
* Make the Minecraft "mod" enabled at all times * Sort the list of mods to move required mods to the top * Automatically enable a mod which has a recipe selected (e.g., from a query param)
This commit is contained in:
@@ -110,10 +110,12 @@ module.exports = class CraftingTableController extends BaseController
|
||||
_craft: ->
|
||||
if @model.catalog.hasRecipe @model.name
|
||||
router.navigate "/item/#{encodeURIComponent(@model.name)}"
|
||||
@model.craft()
|
||||
else
|
||||
router.navigate "/item"
|
||||
|
||||
@model.craft()
|
||||
@refresh()
|
||||
|
||||
_updateNameAutocomplete: ->
|
||||
onChanged = => @onNameFieldChanged()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user