Skip to content

Commit

Permalink
fix(head): 修复头颅皮肤无法正确应用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Nov 4, 2023
1 parent e0d5f92 commit dbcaff5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>mineconfiguration-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>2.8.7</version>
<version>2.8.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion platform/bukkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>mineconfiguration-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>2.8.7</version>
<version>2.8.8</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ public S glow() {
*/
@Deprecated
public S setSkullOwner(String owner) {
return handleItem((item, player) -> {
if (!(item.getItemMeta() instanceof SkullMeta)) return;
SkullMeta meta = (SkullMeta) item.getItemMeta();
meta.setOwner(owner);
return handleMeta((meta, player) -> {
if (!(meta instanceof SkullMeta)) return;
SkullMeta skullMeta = (SkullMeta) meta;
skullMeta.setOwner(owner);
});
}

Expand All @@ -184,10 +184,10 @@ public S setSkullOwner(UUID owner) {
}

public S setSkullOwner(OfflinePlayer owner) {
return handleItem((item, player) -> {
if (!(item.getItemMeta() instanceof SkullMeta)) return;
SkullMeta meta = (SkullMeta) item.getItemMeta();
meta.setOwningPlayer(owner);
return handleMeta((meta, player) -> {
if (!(meta instanceof SkullMeta)) return;
SkullMeta skullMeta = (SkullMeta) meta;
skullMeta.setOwningPlayer(owner);
});
}

Expand Down
2 changes: 1 addition & 1 deletion platform/bungee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>mineconfiguration-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>2.8.7</version>
<version>2.8.8</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<groupId>cc.carm.lib</groupId>
<artifactId>mineconfiguration-parent</artifactId>
<version>2.8.7</version>
<version>2.8.8</version>
<packaging>pom</packaging>
<modules>
<module>common</module>
Expand Down

0 comments on commit dbcaff5

Please sign in to comment.