mirror of
https://github.com/skylord123/node-red-contrib-gamedig.git
synced 2025-04-18 20:13:06 -06:00
- Fixed halt if option
This commit is contained in:
parent
035341c386
commit
cf94d2a787
@ -55,7 +55,7 @@ module.exports = function(RED) {
|
|||||||
.then(function(state) {
|
.then(function(state) {
|
||||||
msg.payload = 'online';
|
msg.payload = 'online';
|
||||||
msg.data = state;
|
msg.data = state;
|
||||||
if (msg.payload === msg.halt_if) {
|
if (msg.payload === node.halt_if) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
node.status({fill:"green",shape:"dot",text: 'Online ' + msg.data.players.length + ' players' });
|
node.status({fill:"green",shape:"dot",text: 'Online ' + msg.data.players.length + ' players' });
|
||||||
@ -65,7 +65,7 @@ module.exports = function(RED) {
|
|||||||
msg.data = {
|
msg.data = {
|
||||||
'error': error
|
'error': error
|
||||||
};
|
};
|
||||||
if (msg.payload === msg.halt_if) {
|
if (msg.payload === node.halt_if) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
node.status({fill:"red", shape:"dot", text: 'Offline'});
|
node.status({fill:"red", shape:"dot", text: 'Offline'});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user