diff --git a/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts b/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts index 09db2fc..9b06456 100644 --- a/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts +++ b/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts @@ -60,7 +60,7 @@ commands.add_command( } EventDataQueue.enqueue( - `${surface.index}${chunk.x}${chunk.y}`, + `${surface.index}_${chunk.x}_${chunk.y}`, data, 50 ) diff --git a/modules/events-mod/src/main/typescript/main/emitting/EventDataQueue.ts b/modules/events-mod/src/main/typescript/main/emitting/EventDataQueue.ts index d4e52ec..9158214 100644 --- a/modules/events-mod/src/main/typescript/main/emitting/EventDataQueue.ts +++ b/modules/events-mod/src/main/typescript/main/emitting/EventDataQueue.ts @@ -29,7 +29,7 @@ export class EventDataQueueManager { enqueue(key: string, event: EventData, weight: int = 1) { - if (key ! in storage.store) { + if (storage.store[key] == undefined) { let node = new Node(key, weight) if (storage.head == null) { storage.head = node