From 204d5a093b27f5b7aba160058c4471d4732886f6 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Tue, 1 Aug 2023 21:45:34 -0400 Subject: [PATCH] Update onTryMoveInto.js --- mods/onTryMoveInto.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/onTryMoveInto.js b/mods/onTryMoveInto.js index 55374299..0261f691 100644 --- a/mods/onTryMoveInto.js +++ b/mods/onTryMoveInto.js @@ -28,7 +28,8 @@ elements.on_try_move_into_test = { related: ["debug", "ash"], } -function tryMove(pixel,nx,ny,leaveBehind=undefined) { +function tryMove(pixel,nx,ny,leaveBehind,force) { + if (pixel.drag && !force) { return true; } var info = elements[pixel.element]; var oob = outOfBounds(nx,ny); if (isEmpty(nx,ny,false,oob)) { // If coords is empty, move to coords