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