Open NickantX opened 3 years ago
Update: the error only gets thrown if the updated hologram is in an unloaded chunk, so a simple if null check for nameable should fix the problem
Update: the issue exists in all versions of Holograms starting with version 2.9, which introduced the new system that calls Hologram.despawn() when its containing chunk unloads. This internally calls the hide() method of every single line of the Hologram, which itself sets nameable to null. This doesn't happen if you use the /holo setline
command since that command itself doesn't actually change the line, it just removes it and creates a new one.
Error:
This happens when calling
.setText
on a TextLine. The line itself updates perfectly fine, the NPE appears to be thrown bynameable.setName(text);
which is called aftersetRaw(text)
.