mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 23:10:17 +01:00
Doors: Fix uninitialized state variable
This commit is contained in:
parent
b9422ed44e
commit
7681682d28
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user