Update an oops.

This commit is contained in:
squiddible 2020-05-22 18:15:21 -04:00 committed by GitHub
parent 6272f4f50a
commit 80342085d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@ level, max gravity at sea level.
local update = function()
for _, players in ipairs(minetest.get_connected_players()) do
local player = minetest.get_player_by_name("singleplayer")
local pos = player:get_pos()
local grav = 1
if pos.y > 300 then grav = 300/pos.y end