From 739ec4ced273ae6c1ba9043f8f03862e1e9b76b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elm=C4=81rs=20=C4=80boli=C5=86=C5=A1?= Date: Tue, 22 Jun 2021 14:20:56 +0300 Subject: [PATCH] improvement --- core/scene.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/scene.lua b/core/scene.lua index cd2222c..aebdc07 100644 --- a/core/scene.lua +++ b/core/scene.lua @@ -21,7 +21,10 @@ function scene.new(cached) subscriptions = {}, buffer = {} } - return setmetatable(self, scene) + local newScene = setmetatable(self, scene) + newScene:activate() + + return newScene end local skipframes = 10