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:
parent
3b22a19e60
commit
781041b0fb
8
init.lua
8
init.lua
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user