Browse Source

NPC and mob regions for real this time

master
FatBoy-DOTC 2 years ago
parent
commit
07e993b0ba
  1. 5
      src/engine/net/client/msg/LoadCharacterMsg.java

5
src/engine/net/client/msg/LoadCharacterMsg.java

@ -102,14 +102,15 @@ public class LoadCharacterMsg extends ClientNetMsg { @@ -102,14 +102,15 @@ public class LoadCharacterMsg extends ClientNetMsg {
writer.putInt(region.getRoom());
}
}
}
else if (absChar.getObjectType().equals(GameObjectType.Mob)){
Regions Mobregion = absChar.getRegion();
Regions region = absChar.getRegion();
if (region == null){
writer.putInt(-1);
writer.putInt(-1);
}else{
Building regionBuilding = Regions.GetBuildingForRegion(Mobregion);
Building regionBuilding = Regions.GetBuildingForRegion(region);
if (regionBuilding == null){
writer.putInt(-1);
writer.putInt(-1);

Loading…
Cancel
Save