From 97beb2a350b228831da348af85e055456bc15d5f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 26 Jul 2015 13:30:25 +0200 Subject: Fixed custom recipes result clientside bug. Fixes #2345. --- src/UI/Window.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp index 61e25651b..dbdcbeaa8 100644 --- a/src/UI/Window.cpp +++ b/src/UI/Window.cpp @@ -605,6 +605,10 @@ void cWindow::OnLeftPaintEnd(cPlayer & a_Player) } SendWholeWindow(*a_Player.GetClientHandle()); + + // To fix #2345 (custom recipes don't work when inventory-painting), we send the result slot explicitly once again + // This is a fix for what seems like a client-side bug + a_Player.GetClientHandle()->SendInventorySlot(m_WindowID, 0, *GetSlot(a_Player, 0)); } @@ -629,6 +633,10 @@ void cWindow::OnRightPaintEnd(cPlayer & a_Player) } SendWholeWindow(*a_Player.GetClientHandle()); + + // To fix #2345 (custom recipes don't work when inventory-painting), we send the result slot explicitly once again + // This is a fix for what seems like a client-side bug + a_Player.GetClientHandle()->SendInventorySlot(m_WindowID, 0, *GetSlot(a_Player, 0)); } -- cgit v1.2.3