mirror of
https://github.com/CarmJos/MineConfiguration.git
synced 2024-09-19 20:05:49 +00:00
fix(head): 修复头颅皮肤无法正确应用的问题
This commit is contained in:
parent
e0d5f9229b
commit
dbcaff5c93
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user