summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2015-07-26 16:26:39 +0200
committerAlexander Harkness <me@bearbin.net>2015-07-26 16:26:39 +0200
commit8eeb25dac60d07ba6ece252072c75cdd13ae39ef (patch)
treed401819cf9636efbc5c7022d18b989f5d0255f05 /src
parentMerge pull request #2393 from jammet/patch-8 (diff)
parentFixed custom recipes result clientside bug. (diff)
downloadcuberite-8eeb25dac60d07ba6ece252072c75cdd13ae39ef.tar
cuberite-8eeb25dac60d07ba6ece252072c75cdd13ae39ef.tar.gz
cuberite-8eeb25dac60d07ba6ece252072c75cdd13ae39ef.tar.bz2
cuberite-8eeb25dac60d07ba6ece252072c75cdd13ae39ef.tar.lz
cuberite-8eeb25dac60d07ba6ece252072c75cdd13ae39ef.tar.xz
cuberite-8eeb25dac60d07ba6ece252072c75cdd13ae39ef.tar.zst
cuberite-8eeb25dac60d07ba6ece252072c75cdd13ae39ef.zip
Diffstat (limited to 'src')
-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));
}