Skip to content

Commit

Permalink
ARK Genesis "TribeId" fix
Browse files Browse the repository at this point in the history
  • Loading branch information
McBane authored and McBane committed Feb 28, 2020
1 parent 6853eee commit 995b6a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/qowyn/ark/tools/data/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public Player(Path path, DataContext context, ReadingOptions ro) throws IOExcept
uniqueId = myData.getPropertyValue("UniqueID", StructUniqueNetIdRepl.class);
savedNetworkAddress = myData.getPropertyValue("SavedNetworkAddress", String.class);
playerName = myData.getPropertyValue("PlayerName", String.class);
tribeId = myData.findPropertyValue("TribeID", Integer.class).orElse(0);
tribeId = myData.findPropertyValue("TribeID", Integer.class).orElse(myData.findPropertyValue("TribeId", Integer.class).orElse(0));
playerDataVersion = myData.findPropertyValue("PlayerDataVersion", Integer.class).orElse(0);
spawnDayNumber = myData.findPropertyValue("SpawnDayNumber", Integer.class).orElse(0);
spawnDayTime = myData.findPropertyValue("SpawnDayTime", Float.class).orElse(0.0f);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/qowyn/ark/tools/data/Tribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public Tribe(Path path, ReadingOptions ro) throws IOException {

tribeName = tribeData.findPropertyValue("TribeName", String.class).orElse("");
ownerPlayerDataId = tribeData.findPropertyValue("OwnerPlayerDataID", Integer.class).orElse(0);
tribeId = tribeData.findPropertyValue("TribeID", Integer.class).orElse(0);
tribeId = tribeData.findPropertyValue("TribeID", Integer.class).orElse(tribeData.findPropertyValue("TribeId", Integer.class).orElse(0));

ArkArrayString membersNames = tribeData.getPropertyValue("MembersPlayerName", ArkArrayString.class);
if (membersNames != null) {
Expand Down

0 comments on commit 995b6a0

Please sign in to comment.