Skip to content
Snippets Groups Projects
Commit 7681682d authored by Duane Robertson's avatar Duane Robertson Committed by paramat
Browse files

Doors: Fix uninitialized state variable

parent b9422ed4
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,8 @@ function _doors.door_toggle(pos, clicker) ...@@ -140,6 +140,8 @@ function _doors.door_toggle(pos, clicker)
-- fix up lvm-placed right-hinged doors, default closed -- fix up lvm-placed right-hinged doors, default closed
if minetest.get_node(pos).name:sub(-2) == "_b" then if minetest.get_node(pos).name:sub(-2) == "_b" then
state = 2 state = 2
else
state = 0
end end
else else
state = tonumber(state) state = tonumber(state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment