diff options
author | cheapie <no-email-for-you@example.com> | 2024-09-14 19:29:50 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-09-14 19:29:50 -0500 |
commit | 1bcfd22b43cb5fdd5f73b5709c9bde86f06d76a2 (patch) | |
tree | 629a893dbaf6148363fd45d2bf2924d03f22bf81 | |
parent | a3cc68ddeecbd35b5f4dd75433a4e924a6932bb8 (diff) | |
download | digidisplay-master.tar digidisplay-master.tar.gz digidisplay-master.tar.bz2 digidisplay-master.tar.xz digidisplay-master.zip |
-rw-r--r-- | .luacheckrc | 8 | ||||
-rw-r--r-- | depends.txt | 2 | ||||
-rw-r--r-- | init.lua | 6 | ||||
-rw-r--r-- | mod.conf | 4 |
4 files changed, 15 insertions, 5 deletions
diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..257113e --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,8 @@ +max_line_length = 160 + +read_globals = { + "minetest", + "vector", + "digilines", + "screwdriver", +} diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 4cf7a13..0000000 --- a/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -digilines -screwdriver? @@ -55,7 +55,7 @@ local function updateDisplay(pos) local entity = minetest.add_entity(pos,"digidisplay:text") local nname = minetest.get_node(pos).name local fdir = minetest.facedir_to_dir(minetest.get_node(pos).param2) - local etex = "" + local etex if nname == "digidisplay:tiny" then etex = generateTexture("tiny",text) elseif nname == "digidisplay:small" then @@ -90,7 +90,7 @@ for _,i in pairs({"tiny","small","medium","large","huge"}) do groups = {cracky=3,digidisplay_lbm=1}, paramtype = "light", paramtype2 = "facedir", - on_rotate = screwdriver and screwdriver.rotate_simple, + on_rotate = minetest.global_exists("screwdriver") and screwdriver.rotate_simple, drawtype = "nodebox", inventory_image = string.format("digidisplay_inventory_%s.png",i), node_box = { @@ -115,7 +115,7 @@ for _,i in pairs({"tiny","small","medium","large","huge"}) do end, digiline = { wire = { - rules = digiline.rules.default, + rules = digilines.rules.default, }, effector = { action = function(pos,_,channel,msg) diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..dea001d --- /dev/null +++ b/mod.conf @@ -0,0 +1,4 @@ +name = digidisplay +depends = digilines +optional_depends = screwdrives +description = Digilines Text Display |