Bugfix issue #2 (Some players still have "fly" after detaching)

This commit is contained in:
Joachim Stolberg 2019-12-03 19:02:27 +01:00
parent a89582368a
commit ab77f8eccd
2 changed files with 6 additions and 0 deletions

@ -56,3 +56,5 @@ Textures: CC0
* 2018-04-12 v0.17 "area owner changed" bug fixed (issue #3)
* 2018-05-28 v1.0 Mod released
* 2019-09-08 v2.0 Completely restructured, protection areas removed
* 2019-12-03 v2.1 Bugfix issue #2 (Some players still have "fly" after detaching)

@ -217,6 +217,10 @@ local function control_player(pos, pos1, pos2, player_name)
end
minetest.after(1, control_player, pos, pos1, pos2, player_name)
end
else
store_last_used(pos)
place_player(pos, player)
reset_operator_privs(player)
end
else
local meta = minetest.get_meta(pos)