1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Do not make inventory_items_animations setting static thread_local (#14573)

This removes restart requirement when toggling the setting after the first play/run.
This commit is contained in:
Muhammad Rifqi Priyo Susanto 2024-04-24 09:00:04 +07:00 committed by GitHub
parent de8d80dee0
commit be540043ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1046,8 +1046,7 @@ void drawItemStack(
return;
}
const static thread_local bool enable_animations =
g_settings->getBool("inventory_items_animations");
const bool enable_animations = g_settings->getBool("inventory_items_animations");
auto *idef = client->idef();
const ItemDefinition &def = item.getDefinition(idef);