mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 19:35:10 -06:00
Fix broken multicombat in pest control
This commit is contained in:
parent
0b454ab84a
commit
08b5e4cb8e
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package core.game.node.entity.npc;
|
||||
|
||||
import core.ServerConstants;
|
||||
import core.game.event.NPCKillEvent;
|
||||
import core.cache.def.impl.NPCDefinition;
|
||||
import core.game.dialogue.DialoguePlugin;
|
||||
|
|
@ -213,6 +214,7 @@ public class NPC extends Entity {
|
|||
getProperties().setSpawnLocation(getLocation());
|
||||
initConfig();
|
||||
Repository.getNpcs().add(this);
|
||||
RegionManager.move(this, ServerConstants.START_LOCATION, this.location);
|
||||
getLocation().getChunk().add(this);
|
||||
if (getLocation().getRegion().isActive()) {
|
||||
Repository.addRenderableNPC(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue