js and config refactor
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user