Changed to use physics_manager

This commit is contained in:
Billy S 2018-12-15 21:45:24 -05:00 committed by GitHub
parent e1444e081f
commit 529a919319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)