Log warning of unused mods when dependencies are missing

hightime
stujones11 2017-03-21 15:16:58 +00:00
parent ea86aa35f5
commit 348dad3d4d
4 changed files with 12 additions and 2 deletions

View File

@ -1,2 +1,2 @@
3d_armor
technic
technic?

View File

@ -1,3 +1,8 @@
if not minetest.get_modpath("technic") then
minetest.log("warning", "hazmat_suit: Mod loaded but unused.")
return
end
local part_count = 4
local level = 35

View File

@ -1,3 +1,3 @@
3d_armor
technic_worldgen
technic_worldgen?
moreores?

View File

@ -1,3 +1,8 @@
if not minetest.get_modpath("technic_worldgen") then
minetest.log("warning", "technic_armor: Mod loaded but unused.")
return
end
local stats = {
lead = { name="Lead", material="technic:lead_ingot", armor=1.6, heal=0, use=500, radiation=80*1.1 },
brass = { name="Brass", material="technic:brass_ingot", armor=1.8, heal=0, use=650, radiation=43 },