|
|
|
@ -16,7 +16,15 @@ import java.util.concurrent.BlockingQueue;
@@ -16,7 +16,15 @@ import java.util.concurrent.BlockingQueue;
|
|
|
|
|
import java.util.concurrent.DelayQueue; |
|
|
|
|
|
|
|
|
|
public enum Respawner implements Runnable { |
|
|
|
|
|
|
|
|
|
// MB Dev Notes:
|
|
|
|
|
//
|
|
|
|
|
// Thread acts as a throttle for messages to the client. Mobiles are
|
|
|
|
|
// respawned over a short time so as not to flood the client when
|
|
|
|
|
// an entire camp respawns at once.
|
|
|
|
|
|
|
|
|
|
RESPAWNER; |
|
|
|
|
|
|
|
|
|
public static BlockingQueue<Mob> respawnQueue = new DelayQueue(); |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|