From 3a696ee58c89d2d463791477f05aaf5dab5b31d0 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 7 Sep 2019 20:40:03 +0200 Subject: [PATCH] fix(boxes/textured): use the right texture name Fixes #40 --- gamecore/modules/world/actors/utils/boxes/textured.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamecore/modules/world/actors/utils/boxes/textured.lua b/gamecore/modules/world/actors/utils/boxes/textured.lua index e9fa941..1b79162 100644 --- a/gamecore/modules/world/actors/utils/boxes/textured.lua +++ b/gamecore/modules/world/actors/utils/boxes/textured.lua @@ -44,7 +44,7 @@ function TexturedBox:drawTopTexture() end function TexturedBox:drawBottomTexture() - local w, h = self.topTexture:getDimensions() + local w, h = self.bottomTexture:getDimensions() local sx = self.w / w local sy = self.d / h self.bottomTexture:draw(0, self.h, 0, sx, sy)