Save instance time even if player is not online.

This commit is contained in:
MobiusDev
2018-06-08 16:42:06 +00:00
parent 3cd9404a34
commit 95186fa890
12 changed files with 60 additions and 24 deletions

View File

@@ -842,10 +842,13 @@ public final class Kamaloka extends AbstractInstance
// set instance reenter time for all allowed players
for (L2PcInstance plr : world.getAllowed())
{
if ((plr != null) && plr.isOnline())
if (plr != null)
{
InstanceManager.getInstance().setReenterPenalty(plr.getObjectId(), world.getTemplateId(), reenter.getTimeInMillis());
plr.sendPacket(sm);
if (plr.isOnline())
{
plr.sendPacket(sm);
}
}
}
world.finishInstance();