3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 22:40:18 +01:00

Account for if custom skulls are added on 1st run

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
Dieser Commit ist enthalten in:
Joshua Castle 2023-03-05 20:26:13 -08:00
Ursprung 0d110ca4f4
Commit f1bd04a71d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: F674F38216C35D5D

Datei anzeigen

@ -28,10 +28,8 @@ package org.geysermc.geyser.pack;
import lombok.Getter; import lombok.Getter;
import org.geysermc.geyser.GeyserImpl; import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.api.event.lifecycle.GeyserLoadResourcePacksEvent; import org.geysermc.geyser.api.event.lifecycle.GeyserLoadResourcePacksEvent;
import org.geysermc.geyser.registry.BlockRegistries;
import org.geysermc.geyser.util.FileUtils; import org.geysermc.geyser.util.FileUtils;
import org.geysermc.geyser.text.GeyserLocale; import org.geysermc.geyser.text.GeyserLocale;
import org.geysermc.geyser.util.FileUtils;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -80,9 +78,7 @@ public class ResourcePack {
} catch (IOException e) { } catch (IOException e) {
GeyserImpl.getInstance().getLogger().error("Could not create packs directory", e); GeyserImpl.getInstance().getLogger().error("Could not create packs directory", e);
} }
// Still keep going since the user may have defined custom skulls
// As we just created the directory it will be empty
return;
} }
List<Path> resourcePacks; List<Path> resourcePacks;