HoloAPI icon indicating copy to clipboard operation
HoloAPI copied to clipboard

Refresh Display

Open drtshock opened this issue 10 years ago • 2 comments

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();
                    }

drtshock avatar Aug 29 '14 19:08 drtshock

I blame @DSH105

CaptainBern avatar Aug 29 '14 20:08 CaptainBern

!fix @CaptainBern

Entity Metadata packet isn't sending correctly.

DSH105 avatar Aug 29 '14 22:08 DSH105