diff --git a/changelog.txt b/changelog.txt index 53c377e..7b99a7e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +v1.15.5: +- FIX: Some mods with custom spells would break the anvil + v1.15.4: - Added recipes for Sima and Juhannussima, which uses the same bonus as Whiskey - Added recipe for Lively Concoction, which uses the same bonus as Healthium diff --git a/init.lua b/init.lua index 5930126..73b903f 100644 --- a/init.lua +++ b/init.lua @@ -18,7 +18,7 @@ function build_spell_level_lookup_table() for i,v in ipairs(actions) do s = s .. " [\"_" .. v.id .. "\"] = " .. "{" -- split spell levels by comma - for spell_level in v.spawn_level:gmatch("([^,]+)") do + for spell_level in (v.spawn_level and v.spawn_level or "10"):gmatch("([^,]+)") do s = s .. spell_level .. "," end s = s .. "},\n" diff --git a/package.json b/package.json index 996443c..f9ad7a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anvil_of_destiny", - "version": "1.15.4", + "version": "1.15.5", "description": "A mod for Noita (https://noitagame.com/) which adds an anvil into the default biomes, which lets you forge two wands into a new one!", "main": "", "scripts": {