mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-09-30 08:07:35 +02:00
Avoid NullPointerException
This commit is contained in:
parent
9e05bb61cb
commit
123e9fb45c
@ -108,6 +108,11 @@ class PacketListener extends PacketAdapter {
|
||||
|
||||
NMSArmorStand nmsArmorStand = (NMSArmorStand) nmsEntity;
|
||||
String customName = nmsArmorStand.getCustomNameStringNMS();
|
||||
|
||||
if (customName == null || customName.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
String customNameWithRelativePlaceholders = replaceRelativePlaceholders(textLine, customName, player);
|
||||
|
||||
if (customNameWithRelativePlaceholders.equals(customName)) {
|
||||
|
Loading…
Reference in New Issue
Block a user