mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-16 16:11:55 +00:00
refactor: convert Tile::tlsIdxShape to thread_local
This commit is contained in:
@@ -260,8 +260,7 @@ void ButtonTile::checkPressed(Level* level, int x, int y, int z) {
|
||||
bool shouldBePressed;
|
||||
|
||||
updateShape(data);
|
||||
Tile::ThreadStorage* tls =
|
||||
(Tile::ThreadStorage*)TlsGetValue(Tile::tlsIdxShape);
|
||||
Tile::ThreadStorage* tls = m_threadShape;
|
||||
std::vector<std::shared_ptr<Entity> >* entities = level->getEntitiesOfClass(
|
||||
typeid(Arrow), AABB::newTemp(x + tls->xx0, y + tls->yy0, z + tls->zz0,
|
||||
x + tls->xx1, y + tls->yy1, z + tls->zz1));
|
||||
|
||||
Reference in New Issue
Block a user