From f53a0a1c416f4f2ced16bc71d0e6ca5135f922ba Mon Sep 17 00:00:00 2001 From: Martin Sulikowski Date: Fri, 17 Jan 2025 22:24:52 +0100 Subject: [PATCH] Fix warp deletion bug. --- .../core/feature/warp/repository/WarpRepositoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/repository/WarpRepositoryImpl.java b/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/repository/WarpRepositoryImpl.java index d3f19b7a4..3a5317433 100644 --- a/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/repository/WarpRepositoryImpl.java +++ b/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/repository/WarpRepositoryImpl.java @@ -109,7 +109,7 @@ private CompletableFuture transactionalSupply(Function 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; }