mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-07 08:39:13 +00:00
Fixed recursive issue in Player#getName
This commit is contained in:
@@ -15,5 +15,7 @@ public interface Character {
|
|||||||
public int getMaxHealth();
|
public int getMaxHealth();
|
||||||
|
|
||||||
public int getInteractingEntity();
|
public int getInteractingEntity();
|
||||||
|
|
||||||
|
String getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -182,4 +182,7 @@ public class Character implements Locatable {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public org.rev317.min.accessors.Character getAccessor() {
|
||||||
|
return accessor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ public class Player extends Character {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getName(){
|
public String getName(){
|
||||||
return this.getName();
|
return getAccessor().getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user