9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-23 17:09:27 +00:00

Re-added entity persistence

This commit is contained in:
Auxilor
2021-04-01 14:13:17 +01:00
parent ad3e66cac9
commit 56d935566d

View File

@@ -95,6 +95,7 @@ public class LivingEcoBoss extends PluginDependent {
private void onSpawn() {
entity.getPersistentDataContainer().set(this.getPlugin().getNamespacedKeyFactory().create("boss"), PersistentDataType.STRING, boss.getName());
entity.setPersistent(true);
entity.setCustomName(boss.getDisplayName());
entity.setCustomNameVisible(true);