Skip to content

Commit

Permalink
Fix warp deletion bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
vLuckyyy committed Jan 17, 2025
1 parent 2a9546c commit f53a0a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private <T> CompletableFuture<T> transactionalSupply(Function<Map<String, WarpCo
synchronized (READ_WRITE_LOCK) {
Map<String, WarpConfig.WarpConfigEntry> warps = new HashMap<>(this.warpConfig.warps);
T result = editor.apply(warps);
this.warpConfig.warps.putAll(warps);
this.warpConfig.warps = warps;
this.configurationManager.save(this.warpConfig);
return result;
}
Expand Down

0 comments on commit f53a0a1

Please sign in to comment.