diff options
author | cheapie <no-email-for-you@example.com> | 2024-09-14 17:42:44 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-09-14 17:42:44 -0500 |
commit | 70ab3cd06da8e8211536963e08680b664965335a (patch) | |
tree | b0ccaee94b9397a2e3dd9baebc1972fbf8c66350 /firealarm_common | |
parent | 4d417ddcb2be62e568ae3f11c58bcb156d5d6a35 (diff) | |
download | firealarm-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.txt | 0 | ||||
-rw-r--r-- | firealarm_common/init.lua | 6 | ||||
-rw-r--r-- | firealarm_common/mod.conf | 2 |
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 |