Fix - Undeclared global variable

Avoids:
2017-09-21 21:44:53: WARNING[Main]: Undeclared global variable "player" accessed at ...le-0.4/bin/../games/hamlets_quest/mods/hbsprint/init.lua:127
This commit is contained in:
Hamlet 2017-09-21 21:53:09 +02:00 committed by GitHub
parent 7fd2beb60f
commit 52477f9cdb

View File

@ -1,5 +1,6 @@
-- Vars
local player
local speed = tonumber(minetest.settings:get("sprint_speed")) or 1.3
local jump = tonumber(minetest.settings:get("sprint_jump")) or 1.1
local key = minetest.settings:get("sprint_key") or "Use"