diff options
author | TeTpaAka <TeTpaAka@users.noreply.github.com> | 2015-06-02 20:30:04 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-06-22 19:30:35 +0200 |
commit | 17ba584fe254eeaee3489cc20e03810a59f3ef9b (patch) | |
tree | 33ff4e30753c243a607ccb06b93d27c325eb1103 /src/server.cpp | |
parent | 0b76e85a717a05b608d09618bb48434510f0ae27 (diff) | |
download | minetest-17ba584fe254eeaee3489cc20e03810a59f3ef9b.tar.gz minetest-17ba584fe254eeaee3489cc20e03810a59f3ef9b.tar.bz2 minetest-17ba584fe254eeaee3489cc20e03810a59f3ef9b.zip |
Fix bug when craft input isn't replaced
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index 7cd92ed65..52bc9867a 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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 |