From 9f39662df685789dd532f7db6aa6007b00628f17 Mon Sep 17 00:00:00 2001 From: Mats Date: Wed, 6 Apr 2016 14:50:09 +0200 Subject: [PATCH] =?UTF-8?q?Check=20if=20custom=20name=20is=20visible=20and?= =?UTF-8?q?=20if=20custom=20name=20is=20not=20empty.=20Fix=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Check if custom name is visible and if custom name is not empty. Fix #327 * Fix typo --- .../protocols/protocol1_9to1_8/storage/EntityTracker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/storage/EntityTracker.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/storage/EntityTracker.java index 0c1b0b620..302a907b4 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/storage/EntityTracker.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/storage/EntityTracker.java @@ -146,7 +146,9 @@ public class EntityTracker extends StoredObject { if (metadata.getId() == 0 && getMetaByIndex(metadataList, 10) != null) { Metadata meta = getMetaByIndex(metadataList, 10); //Only happens if the armorstand is small byte data = (byte) metadata.getValue(); - if ((data & 0x20) == 0x20 && ((byte) meta.getValue() & 0x01) == 0x01) { + // Check invisible | Check small | Check if custom name is empty | Check if custom name visible is true + if ((data & 0x20) == 0x20 && ((byte) meta.getValue() & 0x01) == 0x01 + && ((String) getMetaByIndex(metadataList, 2).getValue()).length() != 0 && (boolean) getMetaByIndex(metadataList, 3).getValue()) { if (!knownHolograms.contains(entityID)) { knownHolograms.add(entityID); try {