mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2025-01-09 17:40:40 +01:00
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:
parent
7fd2beb60f
commit
52477f9cdb
1
init.lua
1
init.lua
@ -1,5 +1,6 @@
|
|||||||
-- Vars
|
-- Vars
|
||||||
|
|
||||||
|
local player
|
||||||
local speed = tonumber(minetest.settings:get("sprint_speed")) or 1.3
|
local speed = tonumber(minetest.settings:get("sprint_speed")) or 1.3
|
||||||
local jump = tonumber(minetest.settings:get("sprint_jump")) or 1.1
|
local jump = tonumber(minetest.settings:get("sprint_jump")) or 1.1
|
||||||
local key = minetest.settings:get("sprint_key") or "Use"
|
local key = minetest.settings:get("sprint_key") or "Use"
|
||||||
|
Loading…
Reference in New Issue
Block a user