Pocketmine-mp: The BossEventPacket is missing 4 breaks

Created on 6 Jun 2017  路  4Comments  路  Source: pmmp/PocketMine-MP

Issue description




src\pocketmine\network\mcpe\protocol\BossEventPacket.php
As title, in the decode() and encode(). This causes TYPE_SHOW to run as 3 types including itself.

Steps to reproduce the issue

  1. Open file
  2. Navigate to the function decode() and encode(),

OS and versions

  • PocketMine-MP: 29e88d8
  • PHP: 7.0
  • Server OS: Any
  • Game version: PE/Win10

Crashdump, backtrace or other files

  • ...
Protocol Works As Intended

Most helpful comment

@intagaming Post a forum topic...thats what the forum is for. Nobody will get annoyed at you there, however they will if polute the issue tracker with support requests.

https://forums.pmmp.io

All 4 comments

Works as intended only if you have provided the unknownShort for it. So if I only want to show it why do I need to do the UNKNOWN_6 or the custom "TEXTURE" ?

It is written like that by design. You understand how a case statement works, yes?

That's confusing without an documentation. The default value is not there to be created with the boss bar. I can't seem to find anywhere the API instruction for an appropriate way to initialize a BossEventPacket, without posting a forum topic.

@intagaming Post a forum topic...thats what the forum is for. Nobody will get annoyed at you there, however they will if polute the issue tracker with support requests.

https://forums.pmmp.io

Was this page helpful?
0 / 5 - 0 ratings