From e9fea0588c6bb3cdc81a16ea2c06735c231a6504 Mon Sep 17 00:00:00 2001 From: Su5eD Date: Fri, 9 Aug 2024 12:18:55 +0200 Subject: [PATCH] Use / for root file path Relates to Sinytra/Connector#1292 --- src/main/java/net/fabricmc/loader/impl/ModContainerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loader/impl/ModContainerImpl.java b/src/main/java/net/fabricmc/loader/impl/ModContainerImpl.java index 442b634..4bc8951 100644 --- a/src/main/java/net/fabricmc/loader/impl/ModContainerImpl.java +++ b/src/main/java/net/fabricmc/loader/impl/ModContainerImpl.java @@ -63,7 +63,7 @@ public List getCodeSourcePaths() { @Override public Path getRootPath() { - return this.modInfo.getOwningFile().getFile().findResource("."); + return this.modInfo.getOwningFile().getFile().findResource("/"); } @Override