From 05f93ec36098033d8c7d36b053afec5fbce0e444 Mon Sep 17 00:00:00 2001 From: HF Date: Wed, 22 Jun 2022 22:18:21 +0200 Subject: [PATCH] minor documentation fixes --- README.md | 2 +- src/core/Tile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd5e1bc0..a1a941e6 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 e40a5a91..0b41a112 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 */