mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 09:30:32 +01:00
Fix crash when unwielding probtool
This commit is contained in:
parent
3b22a19e60
commit
781041b0fb
8
init.lua
8
init.lua
@ -991,9 +991,11 @@ end
|
|||||||
function schemedit.clear_displayed_node_probs(player)
|
function schemedit.clear_displayed_node_probs(player)
|
||||||
local playername = player:get_player_name()
|
local playername = player:get_player_name()
|
||||||
for nodehash, hud_id in pairs(displayed_waypoints[playername]) do
|
for nodehash, hud_id in pairs(displayed_waypoints[playername]) do
|
||||||
player:hud_remove(hud_id)
|
if nodehash ~= "display_active" then
|
||||||
displayed_waypoints[playername][nodehash] = nil
|
player:hud_remove(hud_id)
|
||||||
displayed_waypoints[playername].display_active = false
|
displayed_waypoints[playername][nodehash] = nil
|
||||||
|
displayed_waypoints[playername].display_active = false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user