Fix texture rotation for wallmounted nodeboxes

fixes #8358
This commit is contained in:
sfan5 2019-03-18 22:41:39 +01:00
parent 57e0f52aaa
commit 538a7b12bd

@ -744,7 +744,7 @@ void getNodeTile(MapNode mn, const v3s16 &p, const v3s16 &dir, MeshMakeData *dat
u8 dir_i = ((dir.X + 2 * dir.Y + 3 * dir.Z) & 7) * 2; u8 dir_i = ((dir.X + 2 * dir.Y + 3 * dir.Z) & 7) * 2;
// Get rotation for things like chests // Get rotation for things like chests
u8 facedir = mn.getFaceDir(ndef); u8 facedir = mn.getFaceDir(ndef, true);
static const u16 dir_to_tile[24 * 16] = static const u16 dir_to_tile[24 * 16] =
{ {