From 9db2f708ecb52eb9eebbf4bf613154a9d9d02b01 Mon Sep 17 00:00:00 2001 From: StempunkDev Date: Thu, 15 Jan 2026 00:05:58 +0100 Subject: [PATCH] fix: clear existing ice elements before redrawing in editHeightmap function --- public/modules/ui/heightmap-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/modules/ui/heightmap-editor.js b/public/modules/ui/heightmap-editor.js index 6fe69b78..5c3f1fc3 100644 --- a/public/modules/ui/heightmap-editor.js +++ b/public/modules/ui/heightmap-editor.js @@ -469,7 +469,7 @@ function editHeightmap(options) { // recalculate ice Ice.generate(); - drawIce(); + ice.selectAll("*").remove(); TIME && console.timeEnd("restoreRiskedData"); INFO && console.groupEnd("Edit Heightmap");