mirror of
https://github.com/skylord123/node-red-contrib-gamedig.git
synced 2025-04-10 08:03:08 -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) {
|
||||
msg.payload = 'online';
|
||||
msg.data = state;
|
||||
if (msg.payload === msg.halt_if) {
|
||||
if (msg.payload === node.halt_if) {
|
||||
return null;
|
||||
}
|
||||
node.status({fill:"green",shape:"dot",text: 'Online ' + msg.data.players.length + ' players' });
|
||||
@ -65,7 +65,7 @@ module.exports = function(RED) {
|
||||
msg.data = {
|
||||
'error': error
|
||||
};
|
||||
if (msg.payload === msg.halt_if) {
|
||||
if (msg.payload === node.halt_if) {
|
||||
return null;
|
||||
}
|
||||
node.status({fill:"red", shape:"dot", text: 'Offline'});
|
||||
|
Loading…
x
Reference in New Issue
Block a user