Update index on setting name after attach as well.
This commit is contained in:
1 parent
b41da972f8
commit
b5a98f82c9
1 file changed
+7
-1
@@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user