fix(boxes/textured): use the right texture name

Fixes #40
This commit is contained in:
Kazhnuz 2019-09-07 20:40:03 +02:00
parent 77670d8ec0
commit 3a696ee58c

View file

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