Pocketmine-mp: Item drop pickup trigger.

Created on 1 Apr 2017  路  6Comments  路  Source: pmmp/PocketMine-MP

Issue description



Items dropped cannot be picked up by a player unless they are showing "movement" (yaw/pitch included).
If the player isn't moving, they can't pick up any item, whatever be the item's distance from the player.
I am assuming this has always been an issue as it exists in all pocketmine-based forks (hah, "forks").

Steps to reproduce the issue

  1. Look down.
  2. Drop an item.
  3. Do NOT move.
  4. Wait for an eternity.

OS and versions

  • PocketMine-MP: cd47716
  • PHP: 7.0.17
  • Server OS: Ubuntu 14.04 64-bit
  • Game version: Win10 (Irrelevant)

Crashdump, backtrace or other files


-=-

Gameplay Fixed

Most helpful comment

I've pushed the fix for this to the network branch since I don't have a 1.0.4 device to test this currently.

All 6 comments

I expect this is because PocketMine isn't doing near-entity checks unless the player has moved on that tick.

Yeah, just checked. checkNearEntities() executes inside Player::processMovement() only.

I've pushed the fix for this to the network branch since I don't have a 1.0.4 device to test this currently.

@dktapps Dont you have android?

... and I'm not downgrading for the sake of testing a simple fix.

It only take like 2 minutes

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kenygamer picture kenygamer  路  92Comments

KAGsundaram picture KAGsundaram  路  43Comments

Sandertv picture Sandertv  路  37Comments

MisteFr picture MisteFr  路  19Comments

zKoz210 picture zKoz210  路  27Comments