diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-26 13:29:25 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-26 13:29:25 +0200 |
commit | 6e2025d12544e33c379f0d03ab875faad08c7330 (patch) | |
tree | 832b5e4ac6fb940a5effa310e858d7454dcf4f41 /src/UI/SlotArea.cpp | |
parent | Merge branch 'master' into Inventory (diff) | |
download | cuberite-6e2025d12544e33c379f0d03ab875faad08c7330.tar cuberite-6e2025d12544e33c379f0d03ab875faad08c7330.tar.gz cuberite-6e2025d12544e33c379f0d03ab875faad08c7330.tar.bz2 cuberite-6e2025d12544e33c379f0d03ab875faad08c7330.tar.lz cuberite-6e2025d12544e33c379f0d03ab875faad08c7330.tar.xz cuberite-6e2025d12544e33c379f0d03ab875faad08c7330.tar.zst cuberite-6e2025d12544e33c379f0d03ab875faad08c7330.zip |
Diffstat (limited to '')
-rw-r--r-- | src/UI/SlotArea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp index e9b1ef8e0..b5f84c24c 100644 --- a/src/UI/SlotArea.cpp +++ b/src/UI/SlotArea.cpp @@ -1866,7 +1866,7 @@ void cSlotAreaArmor::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_C { ASSERT((a_SlotNum >= 0) && (a_SlotNum < GetNumSlots())); - // Creative inventory must treat a_ClickedItem as a DraggedItem instead, replacing the inventory slot with it + // When the player is in creative mode, the client sends the new item as a_ClickedItem, not the current item in the slot. if (a_Player.IsGameModeCreative() && (m_ParentWindow.GetWindowType() == cWindow::wtInventory)) { if ((a_ClickAction == caDropKey) || (a_ClickAction == caCtrlDropKey)) |