summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-07-07 05:27:04 +0200
committerLukas Pioch <lukas@zgow.de>2017-07-10 05:46:04 +0200
commita561886bf39ef49bcf6ea5488be833bd23e2edef (patch)
tree4fc7f3e0f68f3c7a07bbb0eaf8954482a360ac4d /src/Entities/Player.cpp
parentcItemGrid bounds check (#3837) (diff)
downloadcuberite-a561886bf39ef49bcf6ea5488be833bd23e2edef.tar
cuberite-a561886bf39ef49bcf6ea5488be833bd23e2edef.tar.gz
cuberite-a561886bf39ef49bcf6ea5488be833bd23e2edef.tar.bz2
cuberite-a561886bf39ef49bcf6ea5488be833bd23e2edef.tar.lz
cuberite-a561886bf39ef49bcf6ea5488be833bd23e2edef.tar.xz
cuberite-a561886bf39ef49bcf6ea5488be833bd23e2edef.tar.zst
cuberite-a561886bf39ef49bcf6ea5488be833bd23e2edef.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 761337a30..e4192140a 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1880,6 +1880,19 @@ AString cPlayer::GetPlayerListName(void) const
+void cPlayer::SetDraggingItem(const cItem & a_Item)
+{
+ if (GetWindow() != nullptr)
+ {
+ m_DraggingItem = a_Item;
+ GetClientHandle()->SendInventorySlot(-1, -1, m_DraggingItem);
+ }
+}
+
+
+
+
+
void cPlayer::TossEquippedItem(char a_Amount)
{
cItems Drops;