Skip to content
Snippets Groups Projects
Commit 68a9d8e3 authored by Duane Robertson's avatar Duane Robertson Committed by Milan
Browse files

cherry-pick from github.com/minetest/minetest_game> Doors: Fix uninitialized state variable

parent 168d9a25
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,8 @@ function _doors.door_toggle(pos, clicker)
-- fix up lvm-placed right-hinged doors, default closed
if minetest.get_node(pos).name:sub(-2) == "_b" then
state = 2
else
state = 0
end
else
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