From fc874b4e4eb972af40f47552c577adfa10e3de15 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Tue, 30 Jan 2018 07:53:28 +0100 Subject: [PATCH] Send worldID to circuits --- client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index 9b365107..7dd17db4 100644 --- a/client.js +++ b/client.js @@ -581,7 +581,7 @@ function instanceManagement() { playerCount: instanceInfo.playerCount || 0, instanceName: instance, } - //remote.call('clusterio','setWorldID',1234) + function callback(err, mac) { if (err) { 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); + // Make sure world has its worldID + setTimeout(function(){ + messageInterface("/c remote.call('clusterio','setWorldID',"+instanceconfig.unique+")") + }, 20000); /* REMOTE SIGNALLING * send any signals the slave has been told to send * Fetch combinator signals from the server