Fixed recursive issue in Player#getName

This commit is contained in:
JKetelaar
2015-04-10 16:04:47 +02:00
parent 2c96e61d7d
commit df4ae0b8e2
3 changed files with 6 additions and 1 deletions
@@ -15,5 +15,7 @@ public interface Character {
public int getMaxHealth();
public int getInteractingEntity();
String getName();
}
@@ -182,4 +182,7 @@ public class Character implements Locatable {
return true;
}
public org.rev317.min.accessors.Character getAccessor() {
return accessor;
}
}
+1 -1
View File
@@ -10,6 +10,6 @@ public class Player extends Character {
}
public String getName(){
return this.getName();
return getAccessor().getName();
}
}