From 1e66f1191747f41bd820bebaf0e7cc2664c181e9 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 20 Jan 2024 02:16:19 +0100 Subject: [PATCH] Reorder members of Address The logical order of clusterio's components are in most places controller, host, instance, control. It is confusing that Address breaks this convention and I do not remember I wrote it that way. Reorder and renumber the host and instance members of Address to be consistent with most other places. --- packages/lib/src/data/messages_core.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/lib/src/data/messages_core.ts b/packages/lib/src/data/messages_core.ts index 4a84e9c4..67ea64a5 100644 --- a/packages/lib/src/data/messages_core.ts +++ b/packages/lib/src/data/messages_core.ts @@ -19,10 +19,10 @@ export type AddressShorthand = export class Address { /** Controller address */ static controller = 0; - /** Instance address */ - static instance = 1; /** Host address */ - static host = 2; + static host = 1; + /** Instance address */ + static instance = 2; /** Control address */ static control = 3; /** Broadcast */