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/depends.txt | 0 firealarm_common/init.lua | 6 +++--- firealarm_common/mod.conf | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 firealarm_common/depends.txt create mode 100644 firealarm_common/mod.conf (limited to 'firealarm_common') diff --git a/firealarm_common/depends.txt b/firealarm_common/depends.txt deleted file mode 100644 index e69de29..0000000 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 -- cgit v1.2.3