Private
Public Access
1
0

js and config refactor

This commit is contained in:
2016-11-02 18:05:10 +01:00
parent 2ed938f22a
commit e5d9266c9d
5 changed files with 118 additions and 111 deletions

View File

@@ -82,9 +82,10 @@ class MineSeeker extends React.Component {
this.state.channel,
(uri, payload, log) => {
var isNotUnsubscribe = typeof payload.msg === 'undefined';
var isTopicEvent = typeof payload.data !== 'undefined',
isNotUnsubscribe = typeof payload.msg === 'undefined';
if (typeof payload.data !== 'undefined') {
if (isTopicEvent) {
console.warn(payload.user + " has been stepped to coords: " + payload.data.coords[0] + ', ' + payload.data.coords[1]);
/** Auto-Step if this player is not the current user */