mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01: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:
parent
de8d80dee0
commit
be540043ee
@ -1046,8 +1046,7 @@ void drawItemStack(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const static thread_local bool enable_animations =
|
const bool enable_animations = g_settings->getBool("inventory_items_animations");
|
||||||
g_settings->getBool("inventory_items_animations");
|
|
||||||
|
|
||||||
auto *idef = client->idef();
|
auto *idef = client->idef();
|
||||||
const ItemDefinition &def = item.getDefinition(idef);
|
const ItemDefinition &def = item.getDefinition(idef);
|
||||||
|
Loading…
Reference in New Issue
Block a user