summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMike Hunsinger <mike.hunsinger@gmail.com>2014-01-23 08:27:39 +0100
committerMike Hunsinger <mike.hunsinger@gmail.com>2014-01-23 08:27:39 +0100
commit41b05416c75b9cbe31406f04b58b5da9892872f8 (patch)
tree0c592551b36871ae695f3bc5396fc92e5701f6b8 /src/ClientHandle.cpp
parentFix a crash but somewhere... (diff)
downloadcuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar
cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.gz
cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.bz2
cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.lz
cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.xz
cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.zst
cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 74d192129..ab3c85ba9 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -658,7 +658,8 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, ch
// A plugin doesn't agree with the tossing. The plugin itself is responsible for handling the consequences (possible inventory mismatch)
return;
}
- m_Player->TossItem(false);
+
+ m_Player->TossEquippedItem();
return;
}
@@ -713,7 +714,7 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, ch
// A plugin doesn't agree with the tossing. The plugin itself is responsible for handling the consequences (possible inventory mismatch)
return;
}
- m_Player->TossItem(false, 64); // Toss entire slot - if there aren't enough items, the maximum will be ejected
+ m_Player->TossEquippedItem(64); // Toss entire slot - if there aren't enough items, the maximum will be ejected
return;
}