Changed to use physics_manager
This commit is contained in:
parent
e1444e081f
commit
529a919319
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user