Duplicate region field removed and inlined.

This commit is contained in:
2023-04-29 12:33:21 -04:00
parent de38c8727a
commit e554171e22
16 changed files with 95 additions and 101 deletions
@@ -42,21 +42,20 @@ public class TeleportToPointMsg extends ClientNetMsg {
if (targetID != 0){
this.targetType = GameObjectType.Building.ordinal();
this.targetUUID = (int) targetID;
}else{
} else {
this.targetType = 0;
this.targetUUID = 0;
}
this.unknown01 = unknown01;
this.unknown02 = unknown02;
if (ago.getRegion() != null){
if (ago.region != null) {
this.targetType = GameObjectType.Building.ordinal();
this.targetUUID = ago.getRegion().parentBuildingID;
this.unknown01 = ago.getRegion().level;
this.unknown02 = ago.getRegion().room;
this.targetUUID = ago.region.parentBuildingID;
this.unknown01 = ago.region.level;
this.unknown02 = ago.region.room;
}
}