mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-06 15:41:50 +00:00
Small api event cleanup, fix neoforge to-do's
This commit is contained in:
@@ -54,7 +54,7 @@ public class GeyserNeoForgeDumpInfo extends BootstrapDumpInfo {
|
||||
private final List<ModInfo> mods;
|
||||
|
||||
public GeyserNeoForgeDumpInfo(MinecraftServer server) {
|
||||
this.platformName = /*FMLLoader.getCurrent().launcherHandlerName()*/""; // TODO 1.21.9 FIXME
|
||||
this.platformName = server.getServerModName();
|
||||
this.platformVersion = FMLLoader.getCurrent().getVersionInfo().neoForgeVersion();
|
||||
this.minecraftVersion = FMLLoader.getCurrent().getVersionInfo().mcVersion();
|
||||
this.dist = FMLLoader.getCurrent().getDist();
|
||||
|
||||
@@ -38,7 +38,6 @@ import org.geysermc.geyser.platform.mod.platform.GeyserModPlatform;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public class GeyserNeoForgePlatform implements GeyserModPlatform {
|
||||
@@ -82,7 +81,7 @@ public class GeyserNeoForgePlatform implements GeyserModPlatform {
|
||||
@Override
|
||||
public @Nullable InputStream resolveResource(@NonNull String resource) {
|
||||
try {
|
||||
return container.getModInfo().getOwningFile().getFile().getContents().openFile(resource); // TODO test 1.21.9
|
||||
return container.getModInfo().getOwningFile().getFile().getContents().openFile(resource);
|
||||
} catch (IOException e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user