From 29f6131e26a55d4d678ce0834be12927f7476656 Mon Sep 17 00:00:00 2001 From: KlonZK Date: Mon, 16 Jul 2018 10:39:05 +0200 Subject: [PATCH] fix custom animation tables move "local frames" from inside the block to outside. --- plugins/lua/building-hacks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lua/building-hacks.lua b/plugins/lua/building-hacks.lua index 2a242dcc8..c773a1976 100644 --- a/plugins/lua/building-hacks.lua +++ b/plugins/lua/building-hacks.lua @@ -147,13 +147,13 @@ function registerBuilding(args) end --animations and connections next: local gears + local frames local frameLength local animate=args.animate if not auto_gears then gears=args.gears or {} - frameLength=1 - local frames + frameLength=1 if animate~=nil then frameLength=animate.frameLength if animate.isMechanical then