DSH105 / HoloAPI

Add Holograms to your Bukkit server!
http://dev.bukkit.org/bukkit-plugins/holoapi/
GNU General Public License v3.0
31 stars 16 forks source link

Refresh Display #113

Open drtshock opened 10 years ago

drtshock commented 10 years ago

Updating a line on the hologram then calling refreshDisplay causes the hologram to flicker. Using updateDisplay will not cause it to flicker but does not update the display. Relevant code is pasted below. This code runs in a loop very 20 ticks and causes it to flicker each time.

for (Hologram hologram : holograms.get(mode)) {
                        System.out.println("Queue size for " + mode.getName() + " : " + queueSize);
                        hologram.updateLine(hologram.getLines().length - 2, ChatColor.GOLD.toString() + queueSize + (queueSize == 1 ? " player" : " players") + " in queue");
                        hologram.updateLine(hologram.getLines().length - 1, ChatColor.GREEN.toString() + serverCount + (serverCount == 1 ? " server" : " servers"));
                        hologram.refreshDisplay();
                    }
CaptainBern commented 10 years ago

I blame @DSH105

DSH105 commented 10 years ago

!fix @CaptainBern

Entity Metadata packet isn't sending correctly.