Send all armorstands on disguise removal

This commit is contained in:
libraryaddict 2020-05-18 16:11:40 +12:00
parent 6d4d12e0fa
commit 43015f192f
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -912,9 +912,9 @@ public abstract class Disguise {
}
}
if (getMultiNameLength() > 0) {
if (armorstandIds.length > 0) {
PacketContainer packet = new PacketContainer(Server.ENTITY_DESTROY);
packet.getIntegerArrays().write(0, Arrays.copyOf(getArmorstandIds(), getMultiNameLength()));
packet.getIntegerArrays().write(0, armorstandIds);
try {
for (Player player : getEntity().getWorld().getPlayers()) {