diff --git a/extensions/reviewed/MarchingSquares.json b/extensions/reviewed/MarchingSquares.json index f75dfb6a..8a69bda5 100644 --- a/extensions/reviewed/MarchingSquares.json +++ b/extensions/reviewed/MarchingSquares.json @@ -8,7 +8,7 @@ "name": "MarchingSquares", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/peanut-outline.svg", "shortDescription": "Allow to build a \"scalar field\" and draw contour lines of it: useful for fog of wars, liquid effects, paint the ground, etc...", - "version": "0.5.3", + "version": "0.5.4", "description": [ "It can be helpful for:", " * Liquid effects like water, blobs or lava ([open the project online](https://editor.gdevelop.io/?project=example://marching-squares-liquids))", @@ -353,8 +353,8 @@ " var squareY = Math.floor(y);", " if (squareX < 0 ||", " squareY < 0 ||", - " squareX >= this.dimX() ||", - " squareY >= this.dimY()) {", + " squareX >= this.dimX() - 1 ||", + " squareY >= this.dimY() - 1) {", " return 0;", " }", " // Extrapolate",