From df90a58cca62c9f3795699c44925831447ba61a6 Mon Sep 17 00:00:00 2001 From: ryanalexander Date: Mon, 24 Mar 2025 16:53:13 +1000 Subject: [PATCH] Fix select_known_packs registered multiple times --- src/client/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/play.js b/src/client/play.js index 6e06dc15..f6745494 100644 --- a/src/client/play.js +++ b/src/client/play.js @@ -53,7 +53,7 @@ module.exports = function (client, options) { client.write('configuration_acknowledged', {}) } client.state = states.CONFIGURATION - client.on('select_known_packs', () => { + client.once('select_known_packs', () => { client.write('select_known_packs', { packs: [] }) }) // Server should send finish_configuration on its own right after sending the client a dimension codec