minertools: geothermometer fix for quartz and technic minerals.
Update geothermometer function is_mineral() so it properly recognizes new mineral nodes from quartz and technic mods. Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
This commit is contained in:
parent
a80a431ba5
commit
2d488aaa21
@ -3,8 +3,8 @@
|
||||
**Minetest modpack by (real)micu.**
|
||||
|
||||
**Tested with following Minetest versions running Minetest Game:**
|
||||
* **0.4.17.1 (*stable-0.4* branch) - all modpack versions up to v2.61**
|
||||
* **5.0.0+ (*stable-5* branch) - from modpack v2.62**
|
||||
* **0.4.17.1 (*stable-0.4* branch) - all modpack versions up to v2.6.1**
|
||||
* **5.0.0+ (*stable-5* branch) - from modpack v2.6.2**
|
||||
|
||||
### Installation:
|
||||
|
||||
|
@ -160,13 +160,25 @@ local function is_mineral(name)
|
||||
if minetest.get_item_group(name, "stone") > 0 then return true end
|
||||
if string.match(name, "^default:stone_with_") then return true end
|
||||
if string.match(name, "^default:.*sandstone") then return true end
|
||||
if name == "default:gravel"
|
||||
or name == "default:clay" then return true end
|
||||
if name == "default:gravel" or name == "default:clay" then
|
||||
return true
|
||||
end
|
||||
if minetest.global_exists("moreores") then
|
||||
if string.match(name, "^moreores:mineral_") then
|
||||
return true
|
||||
end
|
||||
end
|
||||
if minetest.get_modpath("quartz") then
|
||||
if name == "quartz:quartz_ore" then
|
||||
return true
|
||||
end
|
||||
end
|
||||
if minetest.global_exists("technic") then
|
||||
if name == "technic:granite" or name == "technic:marble" or
|
||||
string.match(name, "^technic:mineral_") then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user