Pocketmine-mp: No block API for handling left-clicks

Created on 9 Feb 2017  路  5Comments  路  Source: pmmp/PocketMine-MP

Issue description

ItemFrameDropItemPacket is _only_ supposed to be used for dropping the item, just like DropItemPacket is _only_ used for players throwing items away, _not_ for removing items from the inventory. The item removal should be handled on item-frame left-click, but there is no API to do this currently. This causes issues in creative, since before 1.0, clients used to send ItemFrameDropItemPacket with an Air item in creative, but now they don't send anything, which means that item removal cannot be detected in creative with the current implementation.

Steps to reproduce the issue

  1. place an item frame
  2. stick an item in it
  3. try to remove the item in creative
  4. interact with item frame, item reappears

OS and versions

  • PocketMine-MP: 595fffc
  • PHP: 7.0.15
  • Server OS: Windows 10
  • Game version: PE/Win10
API Fixed

Most helpful comment

No block API for handling left-clicks

This hasn't been resolved. Mojang just fixed their old hack.

All 5 comments

Seems the item frame issue is indeed a client bug. Reference: https://bugs.mojang.com/browse/MCPE-20070

The item frames issue has been fixed in 1.0.4.1 beta.

The issue seems to be marked as solved by mojang...

No block API for handling left-clicks

This hasn't been resolved. Mojang just fixed their old hack.

Note @#1488

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Frago9876543210 picture Frago9876543210  路  50Comments

markkrueg picture markkrueg  路  18Comments

MisteFr picture MisteFr  路  29Comments

Muqsit picture Muqsit  路  23Comments

zKoz210 picture zKoz210  路  23Comments