mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-24 03:45:13 -06:00
Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: GregF <gregf36665@gmail.com>
This commit is contained in:
parent
6d7818951b
commit
74d563837c
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ public final class PCPortalNPC extends AbstractNPC {
|
|||
super.tick();
|
||||
if (session != null) {
|
||||
Region region = RegionManager.forId(location.getRegionId());
|
||||
if (session.getTicks() % 35 - region.assemblePlayerList(0).size() == 0 && region.assembleNpcList(0).size() < 100) {
|
||||
if ((session.getTicks() % 35 - region.assemblePlayerList(0).size()) == 0 &&
|
||||
region.assembleNpcList(0).size() < 100) {
|
||||
spawnNPCs();
|
||||
}
|
||||
if (updateLifepoints && session.getTicks() % 10 == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue