mirror of
https://github.com/CarmJos/MineConfiguration.git
synced 2026-06-04 13:55:03 +08:00
fix(head): 修复头颅皮肤无法正确应用的问题
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>mineconfiguration-parent</artifactId>
|
<artifactId>mineconfiguration-parent</artifactId>
|
||||||
<groupId>cc.carm.lib</groupId>
|
<groupId>cc.carm.lib</groupId>
|
||||||
<version>2.8.7</version>
|
<version>2.8.8</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>mineconfiguration-parent</artifactId>
|
<artifactId>mineconfiguration-parent</artifactId>
|
||||||
<groupId>cc.carm.lib</groupId>
|
<groupId>cc.carm.lib</groupId>
|
||||||
<version>2.8.7</version>
|
<version>2.8.8</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|||||||
+8
-8
@@ -172,10 +172,10 @@ public abstract class ItemModifier<S extends ItemModifier<S, R>, R> {
|
|||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public S setSkullOwner(String owner) {
|
public S setSkullOwner(String owner) {
|
||||||
return handleItem((item, player) -> {
|
return handleMeta((meta, player) -> {
|
||||||
if (!(item.getItemMeta() instanceof SkullMeta)) return;
|
if (!(meta instanceof SkullMeta)) return;
|
||||||
SkullMeta meta = (SkullMeta) item.getItemMeta();
|
SkullMeta skullMeta = (SkullMeta) meta;
|
||||||
meta.setOwner(owner);
|
skullMeta.setOwner(owner);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,10 +184,10 @@ public abstract class ItemModifier<S extends ItemModifier<S, R>, R> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public S setSkullOwner(OfflinePlayer owner) {
|
public S setSkullOwner(OfflinePlayer owner) {
|
||||||
return handleItem((item, player) -> {
|
return handleMeta((meta, player) -> {
|
||||||
if (!(item.getItemMeta() instanceof SkullMeta)) return;
|
if (!(meta instanceof SkullMeta)) return;
|
||||||
SkullMeta meta = (SkullMeta) item.getItemMeta();
|
SkullMeta skullMeta = (SkullMeta) meta;
|
||||||
meta.setOwningPlayer(owner);
|
skullMeta.setOwningPlayer(owner);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>mineconfiguration-parent</artifactId>
|
<artifactId>mineconfiguration-parent</artifactId>
|
||||||
<groupId>cc.carm.lib</groupId>
|
<groupId>cc.carm.lib</groupId>
|
||||||
<version>2.8.7</version>
|
<version>2.8.8</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<groupId>cc.carm.lib</groupId>
|
<groupId>cc.carm.lib</groupId>
|
||||||
<artifactId>mineconfiguration-parent</artifactId>
|
<artifactId>mineconfiguration-parent</artifactId>
|
||||||
<version>2.8.7</version>
|
<version>2.8.8</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<modules>
|
<modules>
|
||||||
<module>common</module>
|
<module>common</module>
|
||||||
|
|||||||
Reference in New Issue
Block a user