mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix bug when craft input isn't replaced
This commit is contained in:
parent
0b76e85a71
commit
17ba584fe2
7 changed files with 128 additions and 59 deletions
|
@ -2698,7 +2698,8 @@ void Server::UpdateCrafting(Player* player)
|
|||
ItemStack preview;
|
||||
InventoryLocation loc;
|
||||
loc.setPlayer(player->getName());
|
||||
getCraftingResult(&player->inventory, preview, false, this);
|
||||
std::vector<ItemStack> output_replacements;
|
||||
getCraftingResult(&player->inventory, preview, output_replacements, false, this);
|
||||
m_env->getScriptIface()->item_CraftPredict(preview, player->getPlayerSAO(), (&player->inventory)->getList("craft"), loc);
|
||||
|
||||
// Put the new preview in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue