forked from mtcontrib/spears
Corrige avertissement sur variable globale
This commit is contained in:
parent
00d86908d8
commit
63d339a686
4
init.lua
4
init.lua
@ -12,6 +12,4 @@ dofile(minetest.get_modpath("spears").."/functions.lua")
|
||||
dofile(minetest.get_modpath("spears").."/tools.lua")
|
||||
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "spears loaded")
|
||||
end
|
||||
minetest.log("action", "[spears] loaded.")
|
||||
|
@ -29,9 +29,10 @@ function spears_register_spear(kind, desc, eq, toughness, material)
|
||||
}
|
||||
})
|
||||
|
||||
SPEAR_ENTITY=spears_set_entity(kind, eq, toughness)
|
||||
|
||||
minetest.register_entity("spears:spear_" .. kind .. "_entity", SPEAR_ENTITY)
|
||||
minetest.register_entity(
|
||||
"spears:spear_" .. kind .. "_entity",
|
||||
spears_set_entity(kind, eq, toughness)
|
||||
)
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'spears:spear_' .. kind,
|
||||
|
Loading…
Reference in New Issue
Block a user