summaryrefslogtreecommitdiff
path: root/firealarm_common
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-14 17:42:44 -0500
committercheapie <no-email-for-you@example.com>2024-09-14 17:42:44 -0500
commit70ab3cd06da8e8211536963e08680b664965335a (patch)
treeb0ccaee94b9397a2e3dd9baebc1972fbf8c66350 /firealarm_common
parent4d417ddcb2be62e568ae3f11c58bcb156d5d6a35 (diff)
downloadfirealarm-70ab3cd06da8e8211536963e08680b664965335a.tar
firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.gz
firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.bz2
firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.xz
firealarm-70ab3cd06da8e8211536963e08680b664965335a.zip
Add luacheck configuration, migrate depends.txt to mod.conf, and some assorted cleanup
Diffstat (limited to 'firealarm_common')
-rw-r--r--firealarm_common/depends.txt0
-rw-r--r--firealarm_common/init.lua6
-rw-r--r--firealarm_common/mod.conf2
3 files changed, 5 insertions, 3 deletions
diff --git a/firealarm_common/depends.txt b/firealarm_common/depends.txt
deleted file mode 100644
index e69de29..0000000
--- a/firealarm_common/depends.txt
+++ /dev/null
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")
diff --git a/firealarm_common/mod.conf b/firealarm_common/mod.conf
new file mode 100644
index 0000000..a9b3951
--- /dev/null
+++ b/firealarm_common/mod.conf
@@ -0,0 +1,2 @@
+name = firealarm_common
+description = Base