mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
nitpick
This commit is contained in:
parent
25a319bb23
commit
3e29afe992
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue