From 6f5fa8429cfcd4d7e02515dfffb7884716765002 Mon Sep 17 00:00:00 2001 From: felipemfp Date: Mon, 8 Aug 2016 16:06:00 -0300 Subject: [PATCH] Fix #6 :bell: :no_bell: --- src/main.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rb b/src/main.rb index 3d5fc69..621900f 100755 --- a/src/main.rb +++ b/src/main.rb @@ -42,10 +42,11 @@ def initialize GarageState ] @state = 0 - @current_state = @states[@state].new(main:self) @last_state = @state @data = JSON.parse(File.read('src/data/data.json')) @is_sound_enable = @data['config']['sound'] + + @current_state = @states[@state].new(main:self) end def update