From 70ab3cd06da8e8211536963e08680b664965335a Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Sep 2024 17:42:44 -0500 Subject: Add luacheck configuration, migrate depends.txt to mod.conf, and some assorted cleanup --- firealarm_common/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firealarm_common/init.lua') diff --git a/firealarm_common/init.lua b/firealarm_common/init.lua index b8806b3..622b2f2 100644 --- a/firealarm_common/init.lua +++ b/firealarm_common/init.lua @@ -12,10 +12,10 @@ function firealarm.loadNode(pos) end function firealarm.loadDevLists() - local path = minetest.get_worldpath()..DIR_DELIM.."firealarm_devices" + local path = minetest.get_worldpath().."/firealarm_devices" local file = io.open(path,"r") if not file then - minetest.log("error","Unable to open fire alarm devices table for reading. ".. + minetest.log("warning","Unable to open fire alarm devices table for reading. ".. "This is normal on the first start.") firealarm.saveDevLists() return @@ -32,7 +32,7 @@ function firealarm.loadDevLists() end function firealarm.saveDevLists() - local path = minetest.get_worldpath()..DIR_DELIM.."firealarm_devices" + local path = minetest.get_worldpath().."/firealarm_devices" local file = io.open(path,"w") if not file then minetest.log("error","Unable to open fire alarm devices table for writing") -- cgit v1.2.3