diff --git a/static/js/map/overlays/PlayerOverlay.js b/static/js/map/overlays/PlayerOverlay.js index 6fa56c8..4136734 100644 --- a/static/js/map/overlays/PlayerOverlay.js +++ b/static/js/map/overlays/PlayerOverlay.js @@ -64,7 +64,10 @@ export default L.LayerGroup.extend({ isPlayerInCurrentLayer: function(player){ var mapLayer = layerMgr.getCurrentLayer(); - return (player.pos.y >= (mapLayer.from*16) && player.pos.y <= (mapLayer.to*16)); + return ( + player.pos.y >= (mapLayer.from*16) && + player.pos.y <= ((mapLayer.to*16) + 15) + ); }, onMinetestUpdate: function(/*info*/){