From 3b44b5e2696911689e45d0cb0fc7485c6bc79c87 Mon Sep 17 00:00:00 2001 From: Billy S Date: Sat, 15 Dec 2018 21:49:51 -0500 Subject: [PATCH] Changed to use physics_manager --- mods/playertools/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/playertools/init.lua b/mods/playertools/init.lua index 7e25de1..f1ff7c1 100644 --- a/mods/playertools/init.lua +++ b/mods/playertools/init.lua @@ -146,7 +146,7 @@ minetest.register_chatcommand("setspeed", { return end - player:set_physics_override(tonumber(speed), nil, nil) + set_player_physics(player, {speed = tonumber(speed)}, 10, "playertools speed") end, }) @@ -167,7 +167,7 @@ minetest.register_chatcommand("setgravity", { minetest.chat_send_player(name, "This is not a number.") return end - player:set_physics_override(nil, tonumber(gravity), nil) + set_player_physics(player, {gravity = tonumber(gravity)}, 10, "playertools gravity") end, }) @@ -188,7 +188,7 @@ minetest.register_chatcommand("setjump", { minetest.chat_send_player(name, "This is not a number.") return end - player:set_physics_override(nil, nil, jump_height) + set_player_physics(player, {jump = tonumber(jump)}, 10, "playertools jump") end, })