mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
parent
cef3f5f1bd
commit
6cc092cc8e
1 changed files with 2 additions and 3 deletions
|
@ -32,7 +32,6 @@ import org.geysermc.connector.FloodgateKeyLoader;
|
||||||
import org.geysermc.connector.configuration.GeyserJacksonConfiguration;
|
import org.geysermc.connector.configuration.GeyserJacksonConfiguration;
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public class GeyserFabricConfiguration extends GeyserJacksonConfiguration {
|
public class GeyserFabricConfiguration extends GeyserJacksonConfiguration {
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
|
@ -40,9 +39,9 @@ public class GeyserFabricConfiguration extends GeyserJacksonConfiguration {
|
||||||
|
|
||||||
public void loadFloodgate(GeyserFabricMod geyser, ModContainer floodgate) {
|
public void loadFloodgate(GeyserFabricMod geyser, ModContainer floodgate) {
|
||||||
Path geyserDataFolder = geyser.getConfigFolder();
|
Path geyserDataFolder = geyser.getConfigFolder();
|
||||||
Path floodgateDataFolder = FabricLoader.getInstance().getConfigDir().resolve("floodgate");
|
Path floodgateDataFolder = floodgate != null ? FabricLoader.getInstance().getConfigDir().resolve("floodgate") : null;
|
||||||
|
|
||||||
floodgateKeyPath = FloodgateKeyLoader.getKeyPath(this, floodgate, floodgateDataFolder, geyserDataFolder, geyser.getGeyserLogger());
|
floodgateKeyPath = FloodgateKeyLoader.getKeyPath(this, floodgateDataFolder, geyserDataFolder, geyser.getGeyserLogger());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue