diff options
author | Wuzzy <almikes@aol.com> | 2014-07-06 23:17:53 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2014-07-06 23:17:53 +0200 |
commit | 49dafa6425b366c0915e6592bd48e6b08898b6f8 (patch) | |
tree | 273f153681f6292ef8aeff6e5a8fec28e60397cf | |
parent | 812c15c9dd66b56e44834bd43596d39f53fa1ec1 (diff) |
Clean up dead code
-rw-r--r-- | init.lua | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -67,7 +67,6 @@ function playereffects.apply_effect_type(effect_type_id, duration, player) playereffects.cancel_effect_group(v, playername) end local effect_id = playereffects.next_effect_id() --- local hudpos = #playereffects.get_player_effects(playername) local effects = playereffects.get_player_effects(playername) local smallest_hudpos local biggest_hudpos = -1 @@ -219,10 +218,6 @@ minetest.register_on_shutdown(function() end) minetest.register_on_joinplayer(function(player) - minetest.after(0, playereffects.join0, player) -end) - -function playereffects.join0(player) local playername = player:get_player_name() -- load all the effects again (if any) @@ -233,8 +228,7 @@ function playereffects.join0(player) end playereffects.inactive_effects[playername] = nil end - -end +end) minetest.register_globalstep(function() local players = minetest.get_connected_players() @@ -248,13 +242,6 @@ end) --[=[ HUD ]=] function playereffects.hud_update(player) ---[[ - playereffects.hud_clear(player) - local effects = playereffects.get_player_effects(player:get_player_name()) - for e=1,#effects do - playereffects.hud_effect(effects[e].effect_type_id, player, effects[e].hudpos) - end -]] local now = os.time() local effects = playereffects.get_player_effects(player:get_player_name()) for e=1,#effects do @@ -293,6 +280,5 @@ function playereffects.hud_effect(effect_type_id, player, pos, time_left) end --- EXAMPLES --- uncomment the line below if you want to try out the examples +-- LOAD EXAMPLES dofile(minetest.get_modpath(minetest.get_current_modname()).."/examples.lua") |