Skip to content

Commit 83d1778

Browse files
committed
Fix config file path
1 parent 0d85d40 commit 83d1778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

velocity/src/main/java/it/renvins/serverpulse/velocity/config/VelocityConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void load() {
4848
}
4949

5050
private boolean copyDefaultsFromResource() {
51-
try (InputStream in = getClass().getResourceAsStream(name)) {
51+
try (InputStream in = getClass().getClassLoader().getResourceAsStream(name)) {
5252
if (in != null) {
5353
Files.copy(in, config.getConfigurationFile().toPath());
5454
return true;

0 commit comments

Comments
 (0)