From eec43a522ee389569825e6c811ce486a5064c685 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 10 Aug 2022 19:17:40 +0200 Subject: [PATCH] fix(tiled): use the sti in the wrapper --- birb/modules/world/maps/tiled/mixins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birb/modules/world/maps/tiled/mixins.lua b/birb/modules/world/maps/tiled/mixins.lua index ad0162c..a809931 100644 --- a/birb/modules/world/maps/tiled/mixins.lua +++ b/birb/modules/world/maps/tiled/mixins.lua @@ -5,8 +5,8 @@ local TiledMixins = Object:extend() function TiledMixins:batchActor(objectlayer, object, layerx, layery) local name = objectlayer.name - local gwidth = object.properties.gwidth or self.sti.tilewidth - local gheight = object.properties.gheight or self.sti.tileheight + local gwidth = object.properties.gwidth or self.wrapper.sti.tilewidth + local gheight = object.properties.gheight or self.wrapper.sti.tileheight local x = object.x + layerx local y = object.y + layery local z = object.properties.z or 0