1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
SmallJoker 2025-06-16 19:19:59 +02:00
parent 25a319bb23
commit 3e29afe992
2 changed files with 2 additions and 3 deletions

View file

@ -2719,8 +2719,7 @@ void Game::handleClientEvent_ShowFormSpec(ClientEvent *event, CameraOrientation
if (fs.formname->empty() && !fs.formspec->empty()) {
m_game_formspec.showPlayerInventory(fs.formspec);
} else {
m_game_formspec.showFormSpec(*fs.formspec,
*fs.formname);
m_game_formspec.showFormSpec(*fs.formspec, *fs.formname);
}
delete fs.formspec;

View file

@ -334,7 +334,7 @@ void GameFormSpec::showPlayerInventory(const std::string *fs_override)
player->inventory_formspec_override.clear();
}
// If preventedd by Client-Side Mods
// If prevented by Client-Side Mods
if (m_client->modsLoaded() && m_client->getScript()->on_inventory_open(m_client->getInventory(inventoryloc)))
return;