summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-14 19:29:50 -0500
committercheapie <no-email-for-you@example.com>2024-09-14 19:29:50 -0500
commit1bcfd22b43cb5fdd5f73b5709c9bde86f06d76a2 (patch)
tree629a893dbaf6148363fd45d2bf2924d03f22bf81 /init.lua
parenta3cc68ddeecbd35b5f4dd75433a4e924a6932bb8 (diff)
downloaddigidisplay-1bcfd22b43cb5fdd5f73b5709c9bde86f06d76a2.tar
digidisplay-1bcfd22b43cb5fdd5f73b5709c9bde86f06d76a2.tar.gz
digidisplay-1bcfd22b43cb5fdd5f73b5709c9bde86f06d76a2.tar.bz2
digidisplay-1bcfd22b43cb5fdd5f73b5709c9bde86f06d76a2.tar.xz
digidisplay-1bcfd22b43cb5fdd5f73b5709c9bde86f06d76a2.zip
Add luacheck configuration and some minor cleanupHEADmaster
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 8ede06c..547fdbd 100644
--- a/init.lua
+++ b/init.lua
@@ -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)