Reset the varpmanager on HCIM death

This commit is contained in:
Ceikry 2022-09-24 16:37:36 +00:00 committed by Ryan
parent 7a91aca78f
commit a8751eaa3c

View file

@ -66,6 +66,7 @@ import proto.management.ClanLeaveNotification;
import proto.management.PlayerStatusUpdate;
import rs09.GlobalStats;
import rs09.ServerConstants;
import rs09.game.Varp;
import rs09.game.VarpManager;
import rs09.game.node.entity.combat.CombatSwingHandler;
import rs09.game.node.entity.combat.equipment.EquipmentDegrader;
@ -591,6 +592,7 @@ public class Player extends Entity {
setAttribute("/save:permadeath", true);
savedData = new SavedData(this);
questRepository = new QuestRepository(this);
varpManager = new VarpManager(this);
new PlayerSaver(this).save();
clear(true);
return;