From c31be8c268722d70d32b6843e038130183657d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Sat, 25 Jun 2016 15:15:41 +0200 Subject: Declared atm.pth at the top of the code --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3