aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-06-25 15:15:41 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-06-25 15:15:41 +0200
commitc31be8c268722d70d32b6843e038130183657d7a (patch)
tree5bd3c2969d417c9e0b418cd662503273e5f2d375 /init.lua
parent6f6a6de54bf7a7562ca374a0f30ac854877dbea2 (diff)
downloadatm-c31be8c268722d70d32b6843e038130183657d7a.tar.gz
atm-c31be8c268722d70d32b6843e038130183657d7a.tar.bz2
atm-c31be8c268722d70d32b6843e038130183657d7a.zip
Declared atm.pth at the top of the code
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index ef2e776..75cc1db 100644
--- a/init.lua
+++ b/init.lua
@@ -1,5 +1,6 @@
atm = {}
atm.balance = {}
+atm.pth = minetest.get_worldpath().."/atm_accounts"
function atm.showform (player)
atm.readaccounts()
@@ -32,7 +33,6 @@ end
function atm.readaccounts ()
- atm.pth = minetest.get_worldpath().."/atm_accounts"
local file = io.open(atm.pth, "r")
if file then
repeat