Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 16:12:43 +01:00
Ursprung
c4630039c4
Commit
385ca98125
@ -244,10 +244,10 @@ public class BlockItemPackets1_16 extends nl.matsv.viabackwards.api.rewriters.It
|
|||||||
Tag skullOwnerTag = tag.remove("SkullOwner");
|
Tag skullOwnerTag = tag.remove("SkullOwner");
|
||||||
if (!(skullOwnerTag instanceof CompoundTag)) return;
|
if (!(skullOwnerTag instanceof CompoundTag)) return;
|
||||||
|
|
||||||
CompoundTag skullOwnerCompoundTag = tag.remove("SkullOwner");
|
CompoundTag skullOwnerCompoundTag = (CompoundTag) skullOwnerTag;
|
||||||
IntArrayTag ownerUuidTag = skullOwnerCompoundTag.remove("Id");
|
Tag ownerUuidTag = skullOwnerCompoundTag.remove("Id");
|
||||||
if (ownerUuidTag != null) {
|
if (ownerUuidTag instanceof IntArrayTag) {
|
||||||
UUID ownerUuid = UUIDIntArrayType.uuidFromIntArray(ownerUuidTag.getValue());
|
UUID ownerUuid = UUIDIntArrayType.uuidFromIntArray((int[]) ownerUuidTag.getValue());
|
||||||
skullOwnerCompoundTag.put(new StringTag("Id", ownerUuid.toString()));
|
skullOwnerCompoundTag.put(new StringTag("Id", ownerUuid.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren