Update index on setting name after attach as well.

This commit is contained in:
Olof Larsson 2014-04-16 15:21:38 +02:00
parent b41da972f8
commit b5a98f82c9

View File

@ -44,6 +44,12 @@ public class MCoreMPlayer extends Entity<MCoreMPlayer>
private String name = null; private String name = null;
public String getName() { return this.name; } public String getName() { return this.name; }
public void setName(String name) { this.name = name; this.changed(); } public void setName(String name)
{
this.name = name;
if (!this.attached()) return;
MCoreMPlayerColl.get().getIndexName().update(this, name);
this.changed();
}
} }