diff options
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 449032a40..eb590c6aa 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -513,9 +513,6 @@ bool LocalPlayer::pickUp(FloorItem *const item) if (item == nullptr) return false; - if (!PacketLimiter::limitPackets(PacketType::PACKET_PICKUP)) - return false; - const int dx = item->getTileX() - mX; const int dy = item->getTileY() - mY; int dist = 6; @@ -528,6 +525,8 @@ bool LocalPlayer::pickUp(FloorItem *const item) { if ((actorManager != nullptr) && actorManager->checkForPickup(item)) { + if (!PacketLimiter::limitPackets(PacketType::PACKET_PICKUP)) + return false; PlayerInfo::pickUpItem(item, Sfx_true); mPickUpTarget = nullptr; } |