Skip to content

Commit

Permalink
[build] v3.6.4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Jul 1, 2024
1 parent 7673e25 commit 5e1c7bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
### Fixed:
- Null pointer exception with HeadDatabaseAPI
- Player Heads were not stacking previously, they should now.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {

val buildNumber: String? = System.getenv("BUILD_NUMBER")

rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "3.6.3"
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "3.6.4"

val isSnapshot = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,9 @@ public ItemStack build() {
if (this.uuid != null && !skull.hasOwner()) {
skull.setOwningPlayer(this.plugin.getServer().getOfflinePlayer(this.uuid));
} else {
final UUID id = UUID.randomUUID();
final PlayerProfile profile = this.plugin.getServer().createProfile(null, "");

final String asString = id.toString().substring(id.toString().length() - 16);

final PlayerProfile profile = this.plugin.getServer().createProfile(id, asString);

profile.setProperty(new ProfileProperty(id.toString(), asString));
profile.setProperty(new ProfileProperty("", ""));

PlayerTextures textures = profile.getTextures();

Expand Down

0 comments on commit 5e1c7bb

Please sign in to comment.