1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-11-16 07:20:37 +01:00
3d_armor/armor_mithril
Zweihorn 04f9123e98 improved load print patch
From the start my prior PR was aiming at compatibility with legacy clients and servers. If you scan the MT forum you will become aware that there seem to be quite many MT 0.4 servers around which are actively used by many players.

However, the best solution may be this example of a new piece of improved code, if I understand the MT Lua code correctly.

```

-- print to log after mod was loaded successfully
local load_message = "[MOD] XXX loaded"
if minetest.log then
	minetest.log("info", load_message) -- aims at state of the art MT software
else
	print (load_message)  -- aims at legacy MT software used in the field
end

```

Hope this helps.
2022-12-21 19:20:04 +01:00
..
locale Added Esperanto translation 2022-11-04 07:44:47 +01:00
textures Refactor armors to be mods rather than hardcoded into API (#78) 2022-09-06 21:06:27 +02:00
depends.txt Refactor armors to be mods rather than hardcoded into API (#78) 2022-09-06 21:06:27 +02:00
description.txt Refactor armors to be mods rather than hardcoded into API (#78) 2022-09-06 21:06:27 +02:00
init.lua improved load print patch 2022-12-21 19:20:04 +01:00
LICENSE.txt Refactor armors to be mods rather than hardcoded into API (#78) 2022-09-06 21:06:27 +02:00
mod.conf Refactor armors to be mods rather than hardcoded into API (#78) 2022-09-06 21:06:27 +02:00