From 529a919319cbe13ec1ca1f1353df3a2ff228bcd6 Mon Sep 17 00:00:00 2001 From: Billy S Date: Sat, 15 Dec 2018 21:45:24 -0500 Subject: [PATCH] Changed to use physics_manager --- mods/sneak_glitch/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/sneak_glitch/init.lua b/mods/sneak_glitch/init.lua index f1ef406..95bde43 100644 --- a/mods/sneak_glitch/init.lua +++ b/mods/sneak_glitch/init.lua @@ -7,9 +7,8 @@ if use_old_code == nil then end minetest.register_on_joinplayer(function(player) - player:set_physics_override({ + set_player_physics(player, { sneak_glitch = true, sneak = true, - new_move = not use_old_code - }) + new_move = not use_old_code}, 10, "enable sneak glitch") end)