mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 19:35:10 -06:00
Fix Treus Dayth unkillable, thanks shire
This commit is contained in:
parent
0499c22677
commit
e343baeea1
1 changed files with 6 additions and 0 deletions
|
|
@ -236,6 +236,12 @@ public abstract class Entity extends Node {
|
|||
*/
|
||||
public void clear() {
|
||||
active = false;
|
||||
if (this instanceof Player) {
|
||||
location.getChunk().removePlayer(asPlayer());
|
||||
}
|
||||
if (this instanceof NPC) {
|
||||
location.getChunk().remove(asNpc());
|
||||
}
|
||||
pulseManager.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue