diff options
author | Beha <shacknetisp@mail.com> | 2021-06-16 11:45:55 -0400 |
---|---|---|
committer | Beha <shacknetisp@mail.com> | 2021-06-16 11:45:55 -0400 |
commit | 657e8a6642e067cf1f719ff6c723c3b2010c539c (patch) | |
tree | 1ac75bdcf5636e48646f5c83d344f497d0a5cde9 | |
parent | d4910281f89c2515812e1b4f3d2be71d022ceca0 (diff) | |
download | elevator-657e8a6642e067cf1f719ff6c723c3b2010c539c.tar.gz elevator-657e8a6642e067cf1f719ff6c723c3b2010c539c.tar.bz2 elevator-657e8a6642e067cf1f719ff6c723c3b2010c539c.zip |
Make elevator climbable too.
-rw-r--r-- | components.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components.lua b/components.lua index 649e5f6..723ed29 100644 --- a/components.lua +++ b/components.lua @@ -230,6 +230,7 @@ for _,mode in ipairs({"on", "off"}) do paramtype = "light", paramtype2 = "facedir", on_rotate = moditems.on_rotate_disallow, + climbable = true, selection_box = { type = "fixed", @@ -305,7 +306,7 @@ for _,mode in ipairs({"on", "off"}) do ["elevator:elevator_off"] = true, ["elevator:shaft"] = true, ["elevator:motor"] = true, - })[sender:get_wielditem():get_name()] then + })[sender:get_wielded_item():get_name()] then return end local formspec |