From e1ab090852533d4e93f1cc820aeb729c50c5f137 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Fri, 20 Aug 2021 02:58:14 +0200 Subject: [PATCH] fix --- .../extensionstore/tools/StoreExtensionTools.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/tools/StoreExtensionTools.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/tools/StoreExtensionTools.java index 4a8c6e4..ba76de3 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/tools/StoreExtensionTools.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/tools/StoreExtensionTools.java @@ -102,7 +102,8 @@ public class StoreExtensionTools { public static void installExtension(String name, StoreRepository storeRepository, InstallExtListener listener) { new Thread(() -> { - String downloadUrl = String.format("https://github.com/sirjonasxx/G-ExtensionStore/raw/repo/%s/store/extensions/%s/extension.zip", storeRepository.getRepoVersion(), name); + String downloadUrl = String.format("https://github.com/sirjonasxx/G-ExtensionStore/raw/repo/%s/store/extensions/%s/extension.zip", storeRepository.getRepoVersion(), + EncodingUtil.encodeURIComponent(name)); Optional maybeExt = storeRepository.getExtensions().stream().filter(e -> e.getTitle().equals(name)).findFirst(); if (maybeExt.isPresent()) { StoreExtension ext = maybeExt.get();