forked from MagicBane/Server
PVE flag
This commit is contained in:
@@ -46,6 +46,7 @@ public enum InterestManager implements Runnable {
|
||||
LoadCharacterMsg lcm;
|
||||
NPC npc;
|
||||
Corpse corpse;
|
||||
PlayerCharacter pc;
|
||||
HashSet<AbstractWorldObject> toUpdate;
|
||||
|
||||
switch (awo.getObjectType()) {
|
||||
@@ -64,6 +65,11 @@ public enum InterestManager implements Runnable {
|
||||
lcm = new LoadCharacterMsg(npc, false);
|
||||
msg = lcm;
|
||||
break;
|
||||
case PlayerCharacter:
|
||||
pc = (PlayerCharacter) awo;
|
||||
lcm = new LoadCharacterMsg(pc, false);
|
||||
msg = lcm;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
@@ -132,8 +138,9 @@ public enum InterestManager implements Runnable {
|
||||
if (cc == null)
|
||||
continue;
|
||||
|
||||
if (!fromBox && pcc.getObjectUUID() == absChar.getObjectUUID())
|
||||
if (pcc.getObjectUUID() == absChar.getObjectUUID()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
else {
|
||||
if (pc != null)
|
||||
|
||||
Reference in New Issue
Block a user