summaryrefslogtreecommitdiff
path: root/car.lua
diff options
context:
space:
mode:
Diffstat (limited to 'car.lua')
-rw-r--r--car.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/car.lua b/car.lua
index 2684243..40d85b6 100644
--- a/car.lua
+++ b/car.lua
@@ -357,6 +357,11 @@ for _,def in ipairs(pieces) do
}
celevator.controller.run(carinfo.controllerpos,event)
end
+ if def._position == "000" then
+ def.on_construct = function(pos)
+ minetest.get_meta(pos):set_string("doorstate","closed")
+ end
+ end
minetest.register_node("celevator:car_"..def._position,def)
end