1
0
mirror of git://repo.or.cz/minetest_schemedit.git synced 2024-11-14 03:30:16 +01:00

Fix crash when unwielding probtool

This commit is contained in:
Wuzzy 2021-04-04 19:24:58 +02:00
parent 3b22a19e60
commit 781041b0fb

View File

@ -991,9 +991,11 @@ end
function schemedit.clear_displayed_node_probs(player)
local playername = player:get_player_name()
for nodehash, hud_id in pairs(displayed_waypoints[playername]) do
player:hud_remove(hud_id)
displayed_waypoints[playername][nodehash] = nil
displayed_waypoints[playername].display_active = false
if nodehash ~= "display_active" then
player:hud_remove(hud_id)
displayed_waypoints[playername][nodehash] = nil
displayed_waypoints[playername].display_active = false
end
end
end