From cc1d083aa74ac488d2eb70991bfdb66fe81cadf7 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Tue, 21 May 2024 19:12:03 +0200 Subject: [PATCH] fix(inferium-server): computerId should be stringified --- inferium-server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inferium-server.lua b/inferium-server.lua index 29480ff..d5f1072 100644 --- a/inferium-server.lua +++ b/inferium-server.lua @@ -1,6 +1,6 @@ local inferiumPlans = require('config/inferium-plans') -- temporary default plan -local VERSION = "0.2.0" +local VERSION = "0.2.1" local INFERIUM_QUERY_PORT = 111 local INFERIUM_REPLY_PORT = 112 @@ -12,7 +12,7 @@ local modem = peripheral.find("modem") or error("No modem attached", 0) modem.open(INFERIUM_QUERY_PORT) local function getPlanForComputer(computerId) - return inferiumPlans[computerId] or defaultPlan + return inferiumPlans[tostring(computerId)] or defaultPlan end local function messageReceived(message)