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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user