cherry-pick from github.com/minetest/minetest_game> Doors: Fix uninitialized state variable
This commit is contained in:
parent
168d9a2591
commit
68a9d8e338
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue