summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-07-26 13:30:25 +0200
committerMattes D <github@xoft.cz>2015-07-26 13:30:25 +0200
commit97beb2a350b228831da348af85e055456bc15d5f (patch)
treed401819cf9636efbc5c7022d18b989f5d0255f05
parentMerge pull request #2393 from jammet/patch-8 (diff)
downloadcuberite-97beb2a350b228831da348af85e055456bc15d5f.tar
cuberite-97beb2a350b228831da348af85e055456bc15d5f.tar.gz
cuberite-97beb2a350b228831da348af85e055456bc15d5f.tar.bz2
cuberite-97beb2a350b228831da348af85e055456bc15d5f.tar.lz
cuberite-97beb2a350b228831da348af85e055456bc15d5f.tar.xz
cuberite-97beb2a350b228831da348af85e055456bc15d5f.tar.zst
cuberite-97beb2a350b228831da348af85e055456bc15d5f.zip
-rw-r--r--src/UI/Window.cpp8
1 files changed, 8 insertions, 0 deletions
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));
}