mirror of
https://github.com/technix/ham_radio.git
synced 2025-01-07 12:57:29 +01:00
fix on_leaveplayer
This commit is contained in:
parent
9c9ec8ab4a
commit
59e29f5e3a
3
init.lua
3
init.lua
@ -57,8 +57,9 @@ minetest.register_on_newplayer(ham_radio.toggle_hud)
|
|||||||
minetest.register_on_joinplayer(ham_radio.toggle_hud)
|
minetest.register_on_joinplayer(ham_radio.toggle_hud)
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
|
local name = player:get_player_name()
|
||||||
ham_radio.is_receiver_wielded[name] = false
|
ham_radio.is_receiver_wielded[name] = false
|
||||||
ham_radio.playerhuds[player:get_player_name()] = nil
|
ham_radio.playerhuds[name] = nil
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local updatetimer = 0
|
local updatetimer = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user