From 86cb14d4ec1fbe6fcedc6336cd4ed9f5fcd65af5 Mon Sep 17 00:00:00 2001 From: Lily-129 <68935009+Lily-129@users.noreply.github.com> Date: Fri, 28 Jan 2022 12:30:44 -0500 Subject: [PATCH] flipped unflipped sign --- mods/portal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/portal.js b/mods/portal.js index a439e998..36a206e5 100644 --- a/mods/portal.js +++ b/mods/portal.js @@ -33,7 +33,7 @@ elements.portal_in = { randomDestination = pixel.portalArray[Math.floor((Math.random() * pixel.portalArray.length))] if(!isEmpty(pixel.x-1,pixel.y) && !outOfBounds(pixel.x-1,pixel.y)) { if(pixelMap[pixel.x-1][pixel.y].element != pixel.element) { - tryMove(pixelMap[pixel.x+1][pixel.y],(randomDestination[0] + 1),(randomDestination[1])) + tryMove(pixelMap[pixel.x-1][pixel.y],(randomDestination[0] + 1),(randomDestination[1])) } } if(!isEmpty(pixel.x+1,pixel.y) && !outOfBounds(pixel.x+1,pixel.y)) {