diff --git a/core/game/controller/events/onPlayerActivity.ts b/core/game/controller/events/onPlayerActivity.ts
index 71a43fc..82df051 100644
--- a/core/game/controller/events/onPlayerActivity.ts
+++ b/core/game/controller/events/onPlayerActivity.ts
@@ -8,8 +8,8 @@ export function onPlayerActivityListener(player : PlayerObject): void {
// reflect position in the field
window.gameRoom.playerList.get(player.id)!.position = {
- x: player.position.x
- ,y: player.position.y
+ x: player.position?.x || null
+ ,y: player.position?.y || null
}
} else {
window.gameRoom.logger.e('onPlayerActivity', `Error on onPlayerActivityListener: Cannot access to afktrace.count. ${player.name}#${player.id}(team ${player.team}, conn ${player.conn}) is not registered in playerList.`)
diff --git a/core/game/model/GameObject/PlayerObject.ts b/core/game/model/GameObject/PlayerObject.ts
index d71b681..db92d9c 100644
--- a/core/game/model/GameObject/PlayerObject.ts
+++ b/core/game/model/GameObject/PlayerObject.ts
@@ -54,8 +54,8 @@ export interface PlayerStats {
}
export interface PlayerPosition {
- x: number;
- y: number;
+ x: number | null;
+ y: number | null;
}
export interface PlayerPermissions {
diff --git a/core/package.json b/core/package.json
index 119e85d..80cbd6a 100644
--- a/core/package.json
+++ b/core/package.json
@@ -1,6 +1,6 @@
{
"name": "haxbotron-core",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Haxbotron is a headless host server application for Haxball.",
"main": "out/app.js",
"scripts": {
diff --git a/core/react/component/Admin/Dashboard.tsx b/core/react/component/Admin/Dashboard.tsx
index 1e7814f..1c87f8b 100644
--- a/core/react/component/Admin/Dashboard.tsx
+++ b/core/react/component/Admin/Dashboard.tsx
@@ -16,6 +16,7 @@ import PowerSettingsNewIcon from '@material-ui/icons/PowerSettingsNew';
import SettingsIcon from '@material-ui/icons/Settings';
import NotificationsIcon from '@material-ui/icons/Notifications';
import { makeStyles } from '@material-ui/core/styles';
+import HelpOutlineIcon from '@material-ui/icons/HelpOutline';
import Mainboard from './Mainboard';
import { Route, RouteComponentProps, Switch } from 'react-router-dom';
import NotFound from '../NotFound';
@@ -167,6 +168,11 @@ function Dashboard({ match }: RouteComponentProps) {
Haxbotron Administrative Dashboard
+
+
+ window.open('https://github.com/dapucita/haxbotron/wiki', '_blank')} />
+
+
diff --git a/db/package.json b/db/package.json
index 9ac1cde..e8c1013 100644
--- a/db/package.json
+++ b/db/package.json
@@ -1,6 +1,6 @@
{
"name": "haxbotron-db",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Haxbotron is a headless host server application for Haxball.",
"main": "out/app.js",
"author": "dapucita",
diff --git a/package.json b/package.json
index cfb1411..43ddb8d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "haxbotron",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Haxbotron is a headless host server application for Haxball.",
"main": "out/index.js",
"author": "dapucita",