Skip to content

Commit f53a0a1

Browse files
committed
Fix warp deletion bug.
1 parent 2a9546c commit f53a0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/repository/WarpRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private <T> CompletableFuture<T> transactionalSupply(Function<Map<String, WarpCo
109109
synchronized (READ_WRITE_LOCK) {
110110
Map<String, WarpConfig.WarpConfigEntry> warps = new HashMap<>(this.warpConfig.warps);
111111
T result = editor.apply(warps);
112-
this.warpConfig.warps.putAll(warps);
112+
this.warpConfig.warps = warps;
113113
this.configurationManager.save(this.warpConfig);
114114
return result;
115115
}

0 commit comments

Comments
 (0)