]> git.lizzy.rs Git - lmz_opening_hours.git/commitdiff
avoid metatable logic
authorIsidor Zeuner <minetest@quidecco.de>
Sat, 3 Apr 2021 00:38:26 +0000 (02:38 +0200)
committerIsidor Zeuner <minetest@quidecco.de>
Sat, 3 Apr 2021 00:38:26 +0000 (02:38 +0200)
init.lua

index cd9d7af8f61dc15dead5b8b666d7fc29b5606487..c8593797224b2f0d845e939c7c7333de00e19577 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -38,7 +38,7 @@ local function reset_execption()
 end
 
 local function opening_today()
-       local today = opening_hours_today
+       local today = opening_hours.today
        if today and today == get_date_formated() then
                return opening_hours.today_start, opening_hours.today_end
        elseif is_weekend() then