Add the sounds and fix an error

This commit is contained in:
libraryaddict
2021-06-16 17:23:32 +12:00
parent 3fd732c049
commit 60d4283715
2 changed files with 117 additions and 149 deletions

View File

@@ -1059,7 +1059,11 @@ public class DisguiseUtilities {
PacketContainer destroyPacket = new PacketContainer(Server.ENTITY_DESTROY);
destroyPacket.getIntegerArrays().write(0, ids);
if (NmsVersion.v1_17.isSupported()) {
destroyPacket.getIntegers().write(0, ids[0]);
} else {
destroyPacket.getIntegerArrays().write(0, ids);
}
return destroyPacket;
}