diff --git a/gamecore/modules/world/actors/utils/boxes/textured.lua b/gamecore/modules/world/actors/utils/boxes/textured.lua index 3d46c4a..9158ecd 100644 --- a/gamecore/modules/world/actors/utils/boxes/textured.lua +++ b/gamecore/modules/world/actors/utils/boxes/textured.lua @@ -27,14 +27,14 @@ local Box3D = require(cwd .. "parent") local TexturedBox = Box3D:extend() function TexturedBox:new(owner, w, h, d, topTexture, bottomTexture) - TexturedBox.super.new(self, owner, w, h, d) - local bottomTexture = bottomTexture or topTexture - self.topTexture = self.assets.texture[topTexture] - self.bottomTexture = self.assets.texture[bottomTexture] + self.topTexture = owner.assets.images[topTexture] + self.bottomTexture = owner.assets.images[bottomTexture] self.haveLine = false + + TexturedBox.super.new(self, owner, w, h, d) end function TexturedBox:drawTopTexture()