refactor: convert Tile::tlsIdxShape to thread_local

This commit is contained in:
Tropical
2026-03-25 14:20:08 -05:00
parent 625ce97385
commit 4a1fb94600
11 changed files with 30 additions and 80 deletions

View File

@@ -103,7 +103,7 @@ Icon* PistonBaseTile::getTexture(int face, int data) {
// when the piston is extended, either normally
// or because a piston arm animation, the top
// texture is the furnace bottom
ThreadStorage* tls = (ThreadStorage*)TlsGetValue(Tile::tlsIdxShape);
ThreadStorage* tls = m_threadShape;
if (isExtended(data) || tls->xx0 > 0 || tls->yy0 > 0 || tls->zz0 > 0 ||
tls->xx1 < 1 || tls->yy1 < 1 || tls->zz1 < 1) {
return iconInside;