diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 6cf02bf4a..ade74edc1 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -937,8 +937,11 @@ bool LocalPlayer::pickUp(FloorItem *item) if (dx * dx + dy * dy < dist) { - Net::getPlayerHandler()->pickUp(item); - mPickUpTarget = nullptr; + if (actorSpriteManager->checkForPickup(item)) + { + Net::getPlayerHandler()->pickUp(item); + mPickUpTarget = nullptr; + } } else if (mPickUpType >= 4 && mPickUpType <= 6) { |