From f7a25bec747c634d18722a9480e845b43cbfe3e6 Mon Sep 17 00:00:00 2001 From: ezhh Date: Sun, 22 Oct 2017 21:55:29 +0100 Subject: [PATCH] Prevent setfree command from changing sneak --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 46e0973..4692b98 100644 --- a/init.lua +++ b/init.lua @@ -135,7 +135,6 @@ minetest.register_chatcommand("setfree",{ end player:set_attribute("hobbled", "") player:set_attribute("slowed", "") - player:set_attribute("unglitched", "") player:set_attribute("frozen", "") player:set_attribute("lost", "") player:set_physics_override({jump = 1, speed = 1, sneak = true}) @@ -266,7 +265,7 @@ minetest.register_chatcommand("cage", { local privs = minetest.get_player_privs(target_name) priv_table[target_name] = privs table_save() - -- remove all privs but shout and add caged and unglitched + -- remove all privs but shout and cage minetest.set_player_privs(target_name,{shout = true}) target:set_attribute("caged", "true") sneak_mode(target, "none")