1
0
mirror of git://repo.or.cz/minetest_schemedit.git synced 2025-07-05 09:30:22 +02:00

2 Commits
1.4.2 ... 1.4.3

Author SHA1 Message Date
14ffdc6ef5 Version 1.4.3 2021-04-04 19:25:18 +02:00
781041b0fb Fix crash when unwielding probtool 2021-04-04 19:24:58 +02:00
2 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Schematic Editor [`schemedit`] # Schematic Editor [`schemedit`]
## Version ## Version
1.4.2 1.4.3
## Description ## Description
This is a mod which allows you to edit and export schematics (`.mts` files). This is a mod which allows you to edit and export schematics (`.mts` files).

View File

@ -991,11 +991,13 @@ 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
if nodehash ~= "display_active" then
player:hud_remove(hud_id) player:hud_remove(hud_id)
displayed_waypoints[playername][nodehash] = nil displayed_waypoints[playername][nodehash] = nil
displayed_waypoints[playername].display_active = false displayed_waypoints[playername].display_active = false
end end
end end
end
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
displayed_waypoints[player:get_player_name()] = { displayed_waypoints[player:get_player_name()] = {