summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Stolberg <joe.stolberg@gmx.de>2017-09-24 12:34:48 +0200
committerJoachim Stolberg <joe.stolberg@gmx.de>2017-09-24 12:34:48 +0200
commit584daaf147c2e68243cdea4a52371e1307d2f252 (patch)
treeab6d970b263e694560bc9143587ed066baea6b30
parent38fde943a89096deec686ed32675f57134dccd80 (diff)
Switched from entity model to real fly privs
-rw-r--r--init.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index c52c7f9..519fd0e 100644
--- a/init.lua
+++ b/init.lua
@@ -21,7 +21,7 @@
2017-08-19 v0.09 crane protection area to prevent crane clusters
2017-08-27 v0.10 hook instance and sound switch off bug fixes
2017-09-09 v0.11 further player bugfixes
- 2017-09-20 v0.12 Switched from entity model to real fly privs
+ 2017-09-24 v0.12 Switched from entity hook model to real fly privs
]]--
@@ -107,7 +107,6 @@ local function fly_privs(player, enable)
local privs = minetest.get_player_privs(player:get_player_name())
local physics = player:get_physics_override()
if privs then
- print("vorher", minetest.privs_to_string(privs))
if enable == true then
player:set_attribute("store_fast", minetest.serialize(privs["fast"]))
player:set_attribute("store_fly", minetest.serialize(privs["fly"]))
@@ -122,7 +121,6 @@ local function fly_privs(player, enable)
end
player:set_physics_override(physics)
minetest.set_player_privs(player:get_player_name(), privs)
- print("nachher", minetest.privs_to_string(privs))
end
end
@@ -717,7 +715,7 @@ if towercrane.recipe then
})
end
-
+-- switch back to normal player privs
minetest.register_on_leaveplayer(function(player, timed_out)
remove_hook(nil, player)
end)