Add maxSpinCount

This commit is contained in:
SilverSokolova 2024-12-18 01:47:58 -06:00 committed by GitHub
parent 54647362a0
commit de642ab8bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,8 @@ CraftingPane::CraftingPane(WorldClientPtr worldClient, PlayerPtr player, Json co
m_settings = jsonMerge(assets->json("/interface/windowconfig/crafting.config:default"),
jsonMerge(assets->fetchJson(baseConfig), settings));
m_maxSpinCount = m_settings.get("maxSpinCount", 1000);
m_filter = StringSet::from(jsonToStringList(m_settings.get("filter", JsonArray())));
m_maxSpinCount = m_settings.get("maxSpinCount", 1000);
GuiReader reader;
reader.registerCallback("spinCount.up", [=](Widget*) {