forked from MagicBane/Server
HZ related stuff
This commit is contained in:
@@ -178,6 +178,11 @@ public class HotzoneManager {
|
||||
if(ZoneManager.hotZone == null)
|
||||
return;
|
||||
|
||||
if(lastPulseTime + 5000L > System.currentTimeMillis())
|
||||
return;
|
||||
|
||||
lastPulseTime = System.currentTimeMillis();
|
||||
|
||||
HashSet<AbstractWorldObject> inRange = WorldGrid.getObjectsInRangePartial(ZoneManager.hotZone.getLoc(),ZoneManager.hotZone.getBounds().getHalfExtents().x * 2, MBServerStatics.MASK_PLAYER);
|
||||
for(AbstractWorldObject awo : inRange){
|
||||
PlayerCharacter pc = (PlayerCharacter)awo;
|
||||
|
||||
Reference in New Issue
Block a user