mirror of
https://github.com/minetest-mods/towercrane.git
synced 2024-11-22 15:23:51 +01:00
dying player bugfix (when fly mode is disabled)
This commit is contained in:
parent
ab77f8eccd
commit
550f8712ae
@ -20,7 +20,7 @@ The size of the crane (which is the construction area) and the rope length can b
|
||||
If there is not enough free space for the crane mast/arm or the potential construction area of the
|
||||
crane intersects a protected area from another player, the crane will not be build.
|
||||
|
||||
* Right-click the crane switch block to switch to fly privs. The player will be placed in front of the crane.
|
||||
* Right-click the crane switch block to start the crane (get fly privs). The player will be placed in front of the crane.
|
||||
|
||||
* To remove the crane, destroy the base block.
|
||||
|
||||
@ -31,7 +31,7 @@ default
|
||||
|
||||
|
||||
# License
|
||||
Copyright (C) 2017-2019 Joachim Stolberg
|
||||
Copyright (C) 2017-2020 Joachim Stolberg
|
||||
Code: Licensed under the GNU LGPL version 2.1 or later. See LICENSE.txt and http://www.gnu.org/licenses/lgpl-2.1.txt
|
||||
Textures: CC0
|
||||
|
||||
@ -57,4 +57,4 @@ Textures: CC0
|
||||
* 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)
|
||||
|
||||
* 2020-01-03 V2.2 dying player bugfix (when fly mode is disabled)
|
||||
|
12
config.lua
12
config.lua
@ -1,3 +1,15 @@
|
||||
--[[
|
||||
|
||||
Tower Crane Mod
|
||||
===============
|
||||
|
||||
Copyright (C) 2017-2020 Joachim Stolberg
|
||||
LGPLv2.1+
|
||||
See LICENSE.txt for more information
|
||||
|
||||
]]--
|
||||
|
||||
|
||||
-- Maximum crane height in blocks (8..n)
|
||||
towercrane.max_height = tonumber(minetest.setting_get("towercrane_max_height")) or 32
|
||||
|
||||
|
12
control.lua
12
control.lua
@ -3,7 +3,7 @@
|
||||
Tower Crane Mod
|
||||
===============
|
||||
|
||||
Copyright (C) 2017-2019 Joachim Stolberg
|
||||
Copyright (C) 2017-2020 Joachim Stolberg
|
||||
LGPLv2.1+
|
||||
See LICENSE.txt for more information
|
||||
|
||||
@ -309,6 +309,16 @@ minetest.register_on_leaveplayer(function(player)
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_on_dieplayer(function(player, reason)
|
||||
if is_operator(player) then
|
||||
local pos = get_my_crane_pos(player)
|
||||
if pos then
|
||||
reset_operator_privs(player)
|
||||
stop_crane(pos, player)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_lbm({
|
||||
label = "[towercrane] break down",
|
||||
name = "towercrane:break_down",
|
||||
|
2
init.lua
2
init.lua
@ -3,7 +3,7 @@
|
||||
Tower Crane Mod
|
||||
===============
|
||||
|
||||
Copyright (C) 2017-2019 Joachim Stolberg
|
||||
Copyright (C) 2017-2020 Joachim Stolberg
|
||||
LGPLv2.1+
|
||||
See LICENSE.txt for more information
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user