Update an oops.
This commit is contained in:
parent
6272f4f50a
commit
80342085d3
1
init.lua
1
init.lua
@ -8,7 +8,6 @@ level, max gravity at sea level.
|
|||||||
|
|
||||||
local update = function()
|
local update = function()
|
||||||
for _, players in ipairs(minetest.get_connected_players()) do
|
for _, players in ipairs(minetest.get_connected_players()) do
|
||||||
local player = minetest.get_player_by_name("singleplayer")
|
|
||||||
local pos = player:get_pos()
|
local pos = player:get_pos()
|
||||||
local grav = 1
|
local grav = 1
|
||||||
if pos.y > 300 then grav = 300/pos.y end
|
if pos.y > 300 then grav = 300/pos.y end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user