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

This commit is contained in:
Kazhnuz 2019-07-27 15:10:05 +02:00
parent e6e29cf443
commit e91e52cafe

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)