init: Use set_physics_override instead of overwriting movement_gravity

This commit is contained in:
SmallJoker 2017-05-28 19:27:44 +02:00 committed by GitHub
parent 5121b36d9b
commit 0cbcacc7f4

View File

@ -5,7 +5,13 @@ saturn = rawget(_G, "saturn") or {}
minetest.setting_set("time_speed", 0)
minetest.set_timeofday(0.3)
minetest.setting_set("enable_clouds", "false")
minetest.setting_set("movement_gravity", 0)
-- Set gravity to 0 on each player without modifying minetest.conf
minetest.register_on_joinplayer(function(player)
player:set_physics_override({
gravity = 0
})
end)
local modpath = minetest.get_modpath("saturn")