fix(tiled): use the sti in the wrapper

This commit is contained in:
Kazhnuz Klappsthul 2022-08-10 19:17:40 +02:00
parent f892b1ce4e
commit eec43a522e
1 changed files with 2 additions and 2 deletions

View File

@ -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