diff options
author | cheapie <no-email-for-you@example.com> | 2024-04-27 20:32:02 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-04-27 20:32:02 -0500 |
commit | 7077022b3e565664bc1d59770cc33a892762cec9 (patch) | |
tree | 18ba0131380b57472d6eac6221b30ea60bb50767 | |
parent | 1e2c5e046c9af0c511f78fa7e88dd6b0eb6c7ef9 (diff) | |
download | celevator-7077022b3e565664bc1d59770cc33a892762cec9.tar celevator-7077022b3e565664bc1d59770cc33a892762cec9.tar.gz celevator-7077022b3e565664bc1d59770cc33a892762cec9.tar.bz2 celevator-7077022b3e565664bc1d59770cc33a892762cec9.tar.xz celevator-7077022b3e565664bc1d59770cc33a892762cec9.zip |
Fix crash if a PI is paired to an uninitialized controller
-rw-r--r-- | pilantern.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pilantern.lua b/pilantern.lua index c156934..83eabe9 100644 --- a/pilantern.lua +++ b/pilantern.lua @@ -116,6 +116,7 @@ function celevator.pi.flash(pos,what) end function celevator.pi.settext(pos,text) + if not text then text = " --" end if minetest.get_item_group(celevator.get_node(pos).name,"_celevator_pi") ~= 1 then return end local meta = minetest.get_meta(pos) if string.len(text) < 3 then |