Illager banner in creative inventory places a normal white banner
Issue description
Illager banner appears to use a non-standard method to define its pattern in NBT, which is not recognized by PM. This leads to the placement of a regular white banner when placing an illager banner.
This is considered a bug because the item appears in the creative inventory, but doesn't work as designed.
Steps to reproduce the issue
- Get an illager banner from the creative inventory.
- Place it and notice it turns white.
OS and versions
- PocketMine-MP: 3.8.3, master
- PHP: 7.3.5
- Server OS: linux
- Game version: all
I noticed that too 🤔
can't we not just add in src/pocketmine/tile/Banner.php PATTERN_ILLAGER and add the colors to it
No, it's not that simple. Mojang specialized this one for reasons I'm not clear on.
oh ok
Okey.
With the new serializer architecture in PM5, it should be possible to implement this as a separate item, avoiding the conditionally useless / broken pattern APIs for illager banners.