Skip to content

Commit

Permalink
Use brass from hades_extramaterials mod if available. (#8)
Browse files Browse the repository at this point in the history
* Use brass from hades_extramaterials mod if available.

* Use elseif.
  • Loading branch information
sfence committed Dec 21, 2021
1 parent 477e7ea commit 859af59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions morelights/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ end
-- Use basic_materials brass if available, otherwise register our own.
if minetest.get_modpath("basic_materials") then
a.brass = "basic_materials:brass_ingot"
elseif minetest.get_modpath("hades_extramaterials") then
a.brass = "hades_extramaterials:brass_ingot"
end

local path = minetest.get_modpath("morelights")
Expand Down

0 comments on commit 859af59

Please sign in to comment.