Send worldID to circuits

This commit is contained in:
Danielv123 committed 2018-01-30 07:53:28 +01:00
1 parent f5fa8a4ca9
commit fc874b4e4e
1 file changed
+5 -1
+5 -1
View File
@@ -581,7 +581,7 @@ function instanceManagement() {
playerCount: instanceInfo.playerCount || 0, playerCount: instanceInfo.playerCount || 0,
instanceName: instance, instanceName: instance,
} }
//remote.call('clusterio','setWorldID',1234)
function callback(err, mac) { function callback(err, mac) {
if (err) { if (err) {
console.log("##### getMac crashed, but we don't really give a shit because we are probably closing down #####"); console.log("##### getMac crashed, but we don't really give a shit because we are probably closing down #####");
@@ -827,6 +827,10 @@ function instanceManagement() {
} }
}); });
}, 1000); }, 1000);
// Make sure world has its worldID
setTimeout(function(){
messageInterface("/c remote.call('clusterio','setWorldID',"+instanceconfig.unique+")")
}, 20000);
/* REMOTE SIGNALLING /* REMOTE SIGNALLING
* send any signals the slave has been told to send * send any signals the slave has been told to send
* Fetch combinator signals from the server * Fetch combinator signals from the server