1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-29 07:50:35 +02:00

remove useless condition (bug?)

This commit is contained in:
crabman77 2015-03-08 23:34:18 +01:00
parent 3393ce9ba1
commit 829e7388c1

View File

@ -40,9 +40,8 @@ minetest.register_globalstep(function(dtime)
--Loop through all connected players --Loop through all connected players
for playerName,playerInfo in pairs(players) do for playerName,playerInfo in pairs(players) do
local player = minetest.get_player_by_name(playerName) local player = minetest.get_player_by_name(playerName)
if not player then return end
local pos = player:getpos()
if player ~= nil then if player ~= nil then
local pos = player:getpos()
-- From playerplus : -- From playerplus :
-- am I near a cactus? -- am I near a cactus?
pos.y = pos.y + 0.1 pos.y = pos.y + 0.1