summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-24 08:55:41 +0100
committermadmaxoft <github@xoft.cz>2014-01-24 08:55:41 +0100
commit8a254faaf7909fec390f1fda6e2cf060fda13462 (patch)
tree9617be2f24f8385ba20195d094800d3e5aaedd49 /src/ClientHandle.cpp
parentFixed flint&steel failure on the Y world edges. (diff)
parentFixed indentation once and for all. (diff)
downloadcuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.gz
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.bz2
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.lz
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.xz
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.zst
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index ed04edac0..18e3d560e 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -657,7 +657,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;
}
@@ -712,7 +713,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;
}