pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.27k stars 1.54k forks source link

onInteract repeats on Win10 #3370

Closed ethaniccc closed 4 years ago

ethaniccc commented 4 years ago

Issue description

When looking at a block and interacting with a plugin that uses onInteract, the function is repeated when right clicked.

Steps to reproduce the issue

  1. Make a plugin that uses onInteract, for example the following: public function onInteract(PlayerInteractEvent $event){ $player = $event->getPlayer(); $in = $event->getPlayer()->getInventory()->getItemInHand()->getCustomName(); if($in == "Test"){ $player->sendMessage("Hi); } }

  2. Go in-game and while staring at a block, interact with the item on Win10 by right clicking the item with the custom name

  3. Try multiple times (if needed) until you get more than one output.

OS and versions

Plugins

CombatLogger v0.0.6, SimpleNickCommand v1, MultiWorld v1.5.2, BuilderTools v1.2.0-beta2, AlwaysSpawn v2.2.4, Mavoric v1.0.4, DevTools v1.13.5, Bot v1.0.0, PurePerms v1.4.3, VanishV2 v1.5, SkylineKitPvP v1.0.0, StaffMode v1, AltFinder v1

Crashdump, backtrace or other files

dktapps commented 4 years ago

This is a client sided bug which has already been worked around. If the existing workaround doesn't work, there's nothing more I can do that won't break other functionality.

ethaniccc commented 4 years ago

Something I noticed: The glitch/bug doesn't occur when the Win10 player interacts with the item while looking into the air