flag active/inactive consistency

This commit is contained in:
Player Name 2026-07-15 08:07:13 +02:00
parent 2297aa6b32
commit 12d7f526ac
2 changed files with 2 additions and 1 deletions

View file

@ -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();
}
/**

View file

@ -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)