Skip to content

Commit

Permalink
pos_marker_manage: add some checks to update_entity event listener
Browse files Browse the repository at this point in the history
For #105 because I can't reproduce the issue.
  • Loading branch information
sbrl committed Aug 18, 2024
1 parent d3ddb55 commit 977dcc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions worldeditadditions_core/core/pos_marker_manage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ end)


wea_c.entities.pos_marker:addEventListener("update_entity", function(event)
ensure_player(event.player_name)

if position_entities[event.player_name][event.i] == nil then
minetest.log("warning", "[wea core:pos_manage:EL/update_entity] position_entities".."["..tostring(event.player_name).."]["..tostring(event.i).."] doesnt exist, event object "..wea.inspect(event).."\nPlease check WEA is up to date and then report this in https://github.com/sbrl/Minetest-WorldEditAdditions/issues/105.")
end

wea_c.entities.pos_marker.delete(
position_entities[event.player_name][event.i]
)
Expand Down

0 comments on commit 977dcc6

Please sign in to comment.