Skip to content

Commit 9f57884

Browse files
committed
changed state variable to global to fix script not working with enable api properly
1 parent 512f980 commit 9f57884

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nestboxes.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
--@enable = true
32
--@module = true
43

@@ -21,7 +20,7 @@ local function get_default_state()
2120
}
2221
end
2322

24-
local state = state or get_default_state()
23+
state = state or get_default_state()
2524

2625
function isEnabled()
2726
return state.enabled

0 commit comments

Comments
 (0)