From 914987dc072775377516639456d59d7e36fc69a1 Mon Sep 17 00:00:00 2001 From: ethxn <163630159+ethxnblxd@users.noreply.github.com> Date: Thu, 19 Mar 2026 19:31:00 +0800 Subject: [PATCH] Add files via upload --- Minecraft.Client/MultiPlayerLocalPlayer.cpp | 6 ++++++ Minecraft.Client/MultiPlayerLocalPlayer.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Minecraft.Client/MultiPlayerLocalPlayer.cpp b/Minecraft.Client/MultiPlayerLocalPlayer.cpp index aef7898f2..038963db6 100644 --- a/Minecraft.Client/MultiPlayerLocalPlayer.cpp +++ b/Minecraft.Client/MultiPlayerLocalPlayer.cpp @@ -179,6 +179,12 @@ shared_ptr MultiplayerLocalPlayer::drop() return nullptr; } +shared_ptr MultiplayerLocalPlayer::dropall() +{ + connection->send(std::make_shared(PlayerActionPacket::DROP_ALL_ITEMS, 0, 0, 0, 0)); + return nullptr; +} + void MultiplayerLocalPlayer::reallyDrop(shared_ptr itemEntity) { } diff --git a/Minecraft.Client/MultiPlayerLocalPlayer.h b/Minecraft.Client/MultiPlayerLocalPlayer.h index e660a96a2..286e48ec8 100644 --- a/Minecraft.Client/MultiPlayerLocalPlayer.h +++ b/Minecraft.Client/MultiPlayerLocalPlayer.h @@ -36,6 +36,9 @@ public: using Player::drop; virtual shared_ptr drop(); + + using Player::dropall; + virtual shared_ptr dropall(); protected: virtual void reallyDrop(shared_ptr itemEntity); public: