Elkien3 07720626da Add sneak_glitch
Ill be unsing the old code.
2017-10-20 12:28:16 -05:00

16 lines
362 B
Lua

-- Enable the sneak glitch (horray!)
local use_old_code = minetest.settings:get_bool("sneak_glitch.use_old_code")
if use_old_code == nil then
-- Default to the new sneak code
use_old_code = false
end
minetest.register_on_joinplayer(function(player)
player:set_physics_override({
sneak_glitch = true,
sneak = true,
new_move = not use_old_code
})
end)