Skip to content

Commit

Permalink
Fix player name stuff (#43)
Browse files Browse the repository at this point in the history
* Fix ClassLookups not being setup

* Rebase (#41)

* added 1.18.2 Support (#39)

* Fix ClassLookups not being setup (#40)

Co-authored-by: SyntaxJason <[email protected]>

* Update version

* Fix

Co-authored-by: SyntaxJason <[email protected]>
  • Loading branch information
Lauriichan and SyntaxJason authored Apr 10, 2022
1 parent 79614f0 commit 0f72f9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ private final void update(boolean flag) {
properties.put("textures", new Property("textures", skin.getValue(), skin.getSignature()));
}

String name = getName();
if (name != null) {
String name = dataAdapter.get("name", WrapType.STRING);
if (name != null && !name.isBlank()) {
VersionCompatProvider.get().getLookupProvider().getLookup("mjGameProfile").setFieldValue(profile, "name", name);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ private final void update(boolean flag) {
properties.put("textures", new Property("textures", skin.getValue(), skin.getSignature()));
}

String name = getName();
if (name != null) {
String name = dataAdapter.get("name", WrapType.STRING);
if (name != null && !name.isBlank()) {
VersionCompatProvider.get().getLookupProvider().getLookup("mjGameProfile").setFieldValue(profile, "name", name);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ private final void update(boolean flag) {
properties.put("textures", new Property("textures", skin.getValue(), skin.getSignature()));
}

String name = getName();
if (name != null) {
String name = dataAdapter.get("name", WrapType.STRING);
if (name != null && !name.isBlank()) {
VersionCompatProvider.get().getLookupProvider().getLookup("mjGameProfile").setFieldValue(profile, "name", name);
}

Expand Down

0 comments on commit 0f72f9f

Please sign in to comment.