diff --git a/README.md b/README.md index fd5e1bc..a1a941e 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,7 @@ pm2 stop ppfun-server ### If using Cloudflare / Reverse Proxy -If USE\_XREALIP is set, we take the IP from the X-Real-Ip header. Use this if you have pixelplanet running behind nginx and cloudflare. Use the nginx set\_realip module to give us the client ip on the X-Real-Ip header (and set it up so that just cloudflare are trusted proxy IPs, or else players could fake their IP). And be sure to also set X-Forwarded-Port and set X-Forwarded-Proto, because we use it for CORS and redirecion. +If USE\_XREALIP is set, we take the IP from the X-Real-Ip header. Use this if you have pixelplanet running behind nginx and cloudflare. Use the nginx set\_realip module to give us the client ip on the X-Real-Ip header (and set it up so that just cloudflare are trusted proxy IPs, or else players could fake their IP). And be sure to also set X-Forwarded-Host, X-Forwarded-Port and set X-Forwarded-Proto, because we use it for CORS and redirecion. ### Auto-Start To have the canvas with all it's components autostart at systemstart, diff --git a/src/core/Tile.js b/src/core/Tile.js index e40a5a9..0b41a11 100644 --- a/src/core/Tile.js +++ b/src/core/Tile.js @@ -49,7 +49,7 @@ function deleteSubtilefromTile( /* * @param subtilesInTile how many subtiles are in a tile (per dimension) - * @param cell subtile to delete [dx, dy] + * @param cell where to add the tile [dx, dy] * @param subtile RGB buffer of subtile * @param buffer Uint8Array for RGB values of tile */