From 7681682d28e87c23f7e986ac25cb21f8d51b883c Mon Sep 17 00:00:00 2001 From: Duane Robertson Date: Sat, 21 May 2016 08:45:55 -0500 Subject: [PATCH] Doors: Fix uninitialized state variable --- mods/doors/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 90ddcc3d..302eb08f 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -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) -- 2.25.1