fix moreores loading of tin ingot vs default tin ingot with backguard compat
* real fix for https://github.com/mt-mods/technic_armor/pull/7 * update information
This commit is contained in:
parent
8d515487ce
commit
9c92d77cb8
12
README.md
12
README.md
@ -16,6 +16,9 @@ Technical information
|
|||||||
This mod is named `3d_armor_technic` and is(was) part of the `3d_armor`,
|
This mod is named `3d_armor_technic` and is(was) part of the `3d_armor`,
|
||||||
it was slited since version 0.4.11 of `3d_armor` now in minenux flavor merged again
|
it was slited since version 0.4.11 of `3d_armor` now in minenux flavor merged again
|
||||||
|
|
||||||
|
Currently the mod was updated at https://git.minetest.io/minenux/minetest-mod-3d_armor_technic
|
||||||
|
but this one already track the updates!
|
||||||
|
|
||||||
#### Depends
|
#### Depends
|
||||||
|
|
||||||
* default
|
* default
|
||||||
@ -25,7 +28,12 @@ it was slited since version 0.4.11 of `3d_armor` now in minenux flavor merged ag
|
|||||||
|
|
||||||
## LICENSE
|
## LICENSE
|
||||||
|
|
||||||
Textures by @poet-nohit and @numberZero
|
Textures
|
||||||
|
|
||||||
Copyright (C) 2013-2018 Stuart Jones - LGPL v2.1
|
* Copyright @poet-nohit and @numberZero
|
||||||
|
|
||||||
|
Source code and features
|
||||||
|
|
||||||
|
* Copyright (C) 2023-2024 PICCORO Lenz Mckay @mckaygerhard - LGPL v2.1
|
||||||
|
* Copyright (C) 2013-2018 Stuart Jones - LGPL v2.1
|
||||||
|
|
||||||
|
18
init.lua
18
init.lua
@ -1,10 +1,9 @@
|
|||||||
|
|
||||||
-- Use 3d_armor translator to take advantage of existing translations for armor parts
|
-- Use 3d_armor translator to take advantage of existing translations for armor parts
|
||||||
local S = armor_i18n.gettext
|
local S = armor_i18n.gettext
|
||||||
local F = armor_i18n.fgettext
|
|
||||||
|
|
||||||
if not minetest.get_modpath("technic_worldgen") then
|
if not minetest.get_modpath("technic_worldgen") then
|
||||||
minetest.log("warning", S("[3d_armor_technic]: Mod loaded but unused."))
|
minetest.log("warning", "[3d_armor_technic]: Mod loaded but unused.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -38,7 +37,7 @@ if minetest.get_modpath("technic_worldgen") then
|
|||||||
materials.carbon = {
|
materials.carbon = {
|
||||||
name = S("Carbon Steel"),
|
name = S("Carbon Steel"),
|
||||||
craft_item = "technic:carbon_steel_ingot",
|
craft_item = "technic:carbon_steel_ingot",
|
||||||
armor = 2.7,
|
- armor = 2.7,
|
||||||
heal = 10,
|
heal = 10,
|
||||||
use = 100,
|
use = 100,
|
||||||
radiation = 40
|
radiation = 40
|
||||||
@ -55,11 +54,7 @@ end
|
|||||||
|
|
||||||
local tin_ingot
|
local tin_ingot
|
||||||
|
|
||||||
if minetest.registered_items["default:tin_ingot"] then
|
if minetest.get_modpath("moreores") and minetest.registered_items["moreores:tin_ingot"] then
|
||||||
tin_ingot = "default:tin_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("moreores") then
|
|
||||||
tin_ingot = "moreores:tin_ingot"
|
tin_ingot = "moreores:tin_ingot"
|
||||||
materials.silver = {
|
materials.silver = {
|
||||||
name = S("Silver"),
|
name = S("Silver"),
|
||||||
@ -70,8 +65,8 @@ if minetest.get_modpath("moreores") then
|
|||||||
radiation = 53
|
radiation = 53
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
if minetest.get_modpath("default") and minetest.registered_items["default:tin_ingot"] then
|
||||||
if tin_ingot then
|
tin_ingot = "default:tin_ingot"
|
||||||
materials.tin = {
|
materials.tin = {
|
||||||
name = S("Tin"),
|
name = S("Tin"),
|
||||||
craft_item = tin_ingot,
|
craft_item = tin_ingot,
|
||||||
@ -153,3 +148,6 @@ for material, m in pairs(materials) do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.log("[3d_armor_technic]: Mod loaded successfully.")
|
||||||
|
|
||||||
|
2
mod.conf
2
mod.conf
@ -3,3 +3,5 @@ name = technic_armor
|
|||||||
description = ARMOR TECH made from lead, brass, cast iron, carbon steel, stainless steel, tin and silver
|
description = ARMOR TECH made from lead, brass, cast iron, carbon steel, stainless steel, tin and silver
|
||||||
depends = 3d_armor
|
depends = 3d_armor
|
||||||
optional_depends = default, moreores, technic_worldgen
|
optional_depends = default, moreores, technic_worldgen
|
||||||
|
author = mckaygerhard
|
||||||
|
license = LGPL
|
Loading…
x
Reference in New Issue
Block a user