Skip to content

Commit

Permalink
fix moreores loading of tin ingot vs default tin ingot with backguard…
Browse files Browse the repository at this point in the history
… compat

* real fix for mt-mods/technic_armor#7
  • Loading branch information
mckaygerhard committed May 6, 2024
1 parent 68737ed commit ca62487
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions 3d_armor_technic/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if minetest.get_modpath("technic_worldgen") then
materials.carbon = {
name = S("Carbon Steel"),
craft_item = "technic:carbon_steel_ingot",
armor = 2.7,
- armor = 2.7,
heal = 10,
use = 100,
radiation = 40
Expand All @@ -54,11 +54,7 @@ end

local tin_ingot

if minetest.registered_items["default:tin_ingot"] then
tin_ingot = "default:tin_ingot"
end

if minetest.get_modpath("moreores") then
if minetest.get_modpath("moreores") and minetest.registered_items["moreores:tin_ingot"] then
tin_ingot = "moreores:tin_ingot"
materials.silver = {
name = S("Silver"),
Expand All @@ -69,8 +65,8 @@ if minetest.get_modpath("moreores") then
radiation = 53
}
end

if tin_ingot then
if minetest.get_modpath("default") and minetest.registered_items["default:tin_ingot"] then
tin_ingot = "default:tin_ingot"
materials.tin = {
name = S("Tin"),
craft_item = tin_ingot,
Expand Down

0 comments on commit ca62487

Please sign in to comment.