instance.setPlayable();
}
} else if (isServer) {
} else {
Instance newInstance = new Instance(instanceNameField.getText(), pack.getName(),
pack, installForMe.isSelected(), version.getVersion(),
version.getMinecraftVersion().getVersion(), this.getMemory(),
this.getPermGen(), this.getModsInstalled(), this.getJarOrder(),
this.getLibrariesNeeded(), this.getExtraArguments(),
this.getMinecraftArguments(), this.getMainClass(),
version.getMinecraftVersion().getMojangVersion().getAssets(),
version.isDev(), !version.getMinecraftVersion().isLegacy());
if (version.isDev() && (version.getHash() != null)) {
newInstance.setHash(version.getHash());
}
App.settings.getInstances().add(newInstance);
}