Skip to content

Commit

Permalink
Fix getUUID for bound soulkey
Browse files Browse the repository at this point in the history
  • Loading branch information
leafreynolds committed Mar 4, 2024
1 parent a45cf4a commit ded1f33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def changeLogResolver = { ->
}

generatedChangelog =
"Soulhome - Build" + build_number.toString() +
"Soulhome - Build " + build_number.toString() +
"<br><br> $generatedChangelog"
resolvedChangelog = generatedChangelog
return generatedChangelog
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/leaf/soulhome/utils/CompoundNBTHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ public static String getString(CompoundTag compoundTag, String tag, String defau
@Nullable
public static UUID getUuid(CompoundTag compoundTag, String tag)
{
return verifyExistance(compoundTag, tag + "Most") && verifyExistance(compoundTag, tag + "Least")
return verifyExistance(compoundTag, tag)
? compoundTag.getUUID(tag) : null;
}
@Nullable
public static UUID getUuid(CompoundTag compoundTag, String tag, UUID defaultUUID)
{
return verifyExistance(compoundTag, tag + "Most") && verifyExistance(compoundTag, tag + "Least")
return verifyExistance(compoundTag, tag)
? compoundTag.getUUID(tag) : defaultUUID;
}

Expand Down

0 comments on commit ded1f33

Please sign in to comment.