fix custom animation tables

move "local frames" from inside the block to outside.
develop
KlonZK 2018-07-16 10:39:05 +02:00 committed by GitHub
parent 44b7e8df71
commit 29f6131e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

@ -147,13 +147,13 @@ function registerBuilding(args)
end end
--animations and connections next: --animations and connections next:
local gears local gears
local frames
local frameLength local frameLength
local animate=args.animate local animate=args.animate
if not auto_gears then if not auto_gears then
gears=args.gears or {} gears=args.gears or {}
frameLength=1 frameLength=1
local frames
if animate~=nil then if animate~=nil then
frameLength=animate.frameLength frameLength=animate.frameLength
if animate.isMechanical then if animate.isMechanical then