Skip to content

Commit 7681682

Browse files
duane-rparamat
authored andcommittedMay 23, 2016
Doors: Fix uninitialized state variable
1 parent b9422ed commit 7681682

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎mods/doors/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ function _doors.door_toggle(pos, clicker)
140140
-- fix up lvm-placed right-hinged doors, default closed
141141
if minetest.get_node(pos).name:sub(-2) == "_b" then
142142
state = 2
143+
else
144+
state = 0
143145
end
144146
else
145147
state = tonumber(state)

0 commit comments

Comments
 (0)
Please sign in to comment.