Skip to content

Commit

Permalink
ItemTag.skull_skin: tiny names are invalid so give null ids
Browse files Browse the repository at this point in the history
Should reduce redundant API calls, a lot of heads have the name of '1' applied for some reason
  • Loading branch information
mcmonkey4eva committed Jul 25, 2022
1 parent ec59060 commit ce600cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -4137,7 +4137,7 @@ else if (material.hasModernData() && material.getModernData() instanceof org.buk

// <--[tag]
// @attribute <LocationTag.jukebox_is_playing>
// @returns ElementTag
// @returns ElementTag(Boolean)
// @mechanism LocationTag.jukebox_play
// @group world
// @description
Expand Down
Expand Up @@ -168,6 +168,9 @@ public void adjust(Mechanism mechanism) {
if (idString == null) {
profile = new PlayerProfile("null", new UUID(0, 0), texture);
}
else if (idString.length() < 3 && list.size() == 2) {
profile = new PlayerProfile(idString, new UUID(0, 0), texture);
}
else {
if (CoreUtilities.contains(idString, '-')) {
UUID uuid = UUID.fromString(idString);
Expand Down

0 comments on commit ce600cd

Please sign in to comment.