diff options
author | Wuzzy <almikes@aol.com> | 2014-07-15 00:12:05 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2014-07-15 00:12:05 +0200 |
commit | 7a411df76ea2c74b3f5e3d8eea257777ae7edb5d (patch) | |
tree | 97170c81b38118ece00cb5b33f393205bbc2b3f3 /init.lua | |
parent | 39c11c143cbafdc082b473596f2bbb3f7e0a0894 (diff) |
Rename 1st param of register func for consistency
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -47,7 +47,7 @@ function playereffects.next_effect_id() end --[=[ API functions ]=] -function playereffects.register_effect_type(name, description, icon, groups, apply, cancel, hidden) +function playereffects.register_effect_type(effect_type_id, description, icon, groups, apply, cancel, hidden) effect_type = {} effect_type.description = description effect_type.apply = apply @@ -63,8 +63,8 @@ function playereffects.register_effect_type(name, description, icon, groups, app else effect_type.hidden = false end - playereffects.effect_types[name] = effect_type - minetest.log("action", "[playereffects] Effect type "..name.." registered!") + playereffects.effect_types[effect_type_id] = effect_type + minetest.log("action", "[playereffects] Effect type "..effect_type_id.." registered!") end function playereffects.apply_effect_type(effect_type_id, duration, player) |