mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-02-22 02:41:27 +01:00
Fix nametags on 1.19
This commit is contained in:
parent
c0a9387083
commit
127f1acb7f
@ -3064,7 +3064,8 @@ public class DisguiseUtilities {
|
|||||||
} else {
|
} else {
|
||||||
PacketContainer packet = new PacketContainer(NmsVersion.v1_19.isSupported() ? Server.SPAWN_ENTITY : Server.SPAWN_ENTITY_LIVING);
|
PacketContainer packet = new PacketContainer(NmsVersion.v1_19.isSupported() ? Server.SPAWN_ENTITY : Server.SPAWN_ENTITY_LIVING);
|
||||||
packet.getIntegers().write(0, standIds[i]);
|
packet.getIntegers().write(0, standIds[i]);
|
||||||
packet.getIntegers().write(1, DisguiseType.ARMOR_STAND.getTypeId());
|
packet.getModifier()
|
||||||
|
.write(2, NmsVersion.v1_19.isSupported() ? DisguiseType.ARMOR_STAND.getNmsEntityType() : DisguiseType.ARMOR_STAND.getTypeId());
|
||||||
|
|
||||||
packet.getUUIDs().write(0, UUID.randomUUID());
|
packet.getUUIDs().write(0, UUID.randomUUID());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user