mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Fix resource load in Windows
This commit is contained in:
parent
dc89b180fb
commit
694d05e78a
@ -164,7 +164,8 @@ public abstract class Extension {
|
||||
*/
|
||||
public @Nullable InputStream getPackagedResource(@NotNull Path target) {
|
||||
try {
|
||||
final URL url = getOrigin().getMinestomExtensionClassLoader().getResource(target.toString());
|
||||
String path = target.toString().replace('\\', '/');
|
||||
final URL url = getOrigin().getMinestomExtensionClassLoader().getResource(path);
|
||||
if (url == null) {
|
||||
getLogger().debug("Resource not found: {}", target);
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user