aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeha <shacknetisp@mail.com>2021-06-16 11:45:55 -0400
committerBeha <shacknetisp@mail.com>2021-06-16 11:45:55 -0400
commit657e8a6642e067cf1f719ff6c723c3b2010c539c (patch)
tree1ac75bdcf5636e48646f5c83d344f497d0a5cde9
parentd4910281f89c2515812e1b4f3d2be71d022ceca0 (diff)
downloadelevator-657e8a6642e067cf1f719ff6c723c3b2010c539c.tar.gz
elevator-657e8a6642e067cf1f719ff6c723c3b2010c539c.tar.bz2
elevator-657e8a6642e067cf1f719ff6c723c3b2010c539c.zip
Make elevator climbable too.
-rw-r--r--components.lua3
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