mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 11:25:11 -06:00
flag active/inactive consistency
This commit is contained in:
parent
2297aa6b32
commit
12d7f526ac
2 changed files with 2 additions and 1 deletions
|
|
@ -251,6 +251,7 @@ public class RegionChunk {
|
|||
players.add(player);
|
||||
Region region = getCurrentBase().getRegion();
|
||||
region.getTolerances().put(player.getName(), System.currentTimeMillis());
|
||||
region.flagActive();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -284,6 +285,7 @@ public class RegionChunk {
|
|||
players.remove(player);
|
||||
Region region = getCurrentBase().getRegion();
|
||||
region.getTolerances().remove(player.getName());
|
||||
region.checkInactive();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -386,7 +386,6 @@ object RegionManager {
|
|||
src.region.decrementViewAmount()
|
||||
dst.chunk.addPlayer(entity)
|
||||
dst.region.incrementViewAmount()
|
||||
dst.region.flagActive()
|
||||
}
|
||||
is NPC -> {
|
||||
src.chunk.remove(entity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue