Closed calumari closed 4 years ago
Could you make it so that it runs 1 tick later only on 1.16+? I'm worried about breaking things in existing versions by mistake.
😬
Oops. I just merged into my fork's master branch. I'll just create another PR, my bad.
I decided to make this a separate PR as it addresses issues that aren't present in legacy Minecraft versions.
In 1.16, a PlayerInteractEvent is fired when clicking on a Gui item that opens another gui. This can cause issues that prevent guis from opening correctly. While there is probably a more elegant solution, this is fixed by delaying Gui#open by one tick.
Demo: https://github.com/calumari/GuiDemo
This PR also adds support for BungeeCord's RGB color format (§x§r§r§g§g§b§b).