1
mirror of https://github.com/CarmJos/MineConfiguration.git synced 2024-09-19 20:05:49 +00:00

fix(head): 修复头颅皮肤无法正确应用的问题

This commit is contained in:
Carm Jos 2023-11-05 02:56:56 +08:00
parent e0d5f9229b
commit dbcaff5c93
5 changed files with 12 additions and 12 deletions

View File

@ -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>

View File

@ -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>

View File

@ -172,10 +172,10 @@ public abstract class ItemModifier<S extends ItemModifier<S, R>, R> {
*/
@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);
});
}
@ -184,10 +184,10 @@ public abstract class ItemModifier<S extends ItemModifier<S, R>, R> {
}
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);
});
}

View File

@ -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>

View File

@ -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>