com.mojang.{authlib,serialization}

This commit is contained in:
Noah van der Aa 2024-12-15 00:16:28 +01:00
parent 3fbf7aa159
commit 363d5bcf57
No known key found for this signature in database
GPG Key ID: 547D90BC6FF753CF
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
--- a/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java --- a/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java
+++ b/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java +++ b/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java
@@ -44,6 +44,7 @@ @@ -44,6 +_,7 @@
.collect(Collectors.toSet()); .collect(Collectors.toSet());
final int page = 0; final int page = 0;
@ -8,7 +8,7 @@
for (final List<String> request : Iterables.partition(criteria, ENTRIES_PER_PAGE)) { for (final List<String> request : Iterables.partition(criteria, ENTRIES_PER_PAGE)) {
final List<String> normalizedRequest = request.stream().map(YggdrasilGameProfileRepository::normalizeName).toList(); final List<String> normalizedRequest = request.stream().map(YggdrasilGameProfileRepository::normalizeName).toList();
@@ -75,6 +76,12 @@ @@ -75,6 +_,12 @@
LOGGER.debug("Couldn't find profile {}", name); LOGGER.debug("Couldn't find profile {}", name);
callback.onProfileLookupFailed(name, new ProfileNotFoundException("Server did not find the requested profile")); callback.onProfileLookupFailed(name, new ProfileNotFoundException("Server did not find the requested profile"));
} }

View File

@ -1,6 +1,6 @@
--- a/com/mojang/serialization/Dynamic.java --- a/com/mojang/serialization/Dynamic.java
+++ b/com/mojang/serialization/Dynamic.java +++ b/com/mojang/serialization/Dynamic.java
@@ -19,6 +19,7 @@ @@ -19,6 +_,7 @@
@SuppressWarnings("unused") @SuppressWarnings("unused")
public class Dynamic<T> extends DynamicLike<T> { public class Dynamic<T> extends DynamicLike<T> {
@ -8,7 +8,7 @@
private final T value; private final T value;
public Dynamic(final DynamicOps<T> ops) { public Dynamic(final DynamicOps<T> ops) {
@@ -120,7 +121,7 @@ @@ -120,7 +_,7 @@
return new OptionalDynamic<>(ops, ops.getMap(value).flatMap(m -> { return new OptionalDynamic<>(ops, ops.getMap(value).flatMap(m -> {
final T value = m.get(key); final T value = m.get(key);
if (value == null) { if (value == null) {