From 37702d6ae7ea726460a102abcd7c1ea309584986 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 30 Mar 2024 15:43:01 +0000 Subject: [PATCH] eoh --- EOH/v1.lua | 7 ++++--- README.MD | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/EOH/v1.lua b/EOH/v1.lua index cc89f99..8daa219 100644 --- a/EOH/v1.lua +++ b/EOH/v1.lua @@ -48,6 +48,7 @@ local function getComponent(type, idPrefix) matchedK = k matchedV = v matched = matched + 1 + log("[init] getComponent: match " .. type .. " with prefix '" .. idPrefix .. "', found: " .. k) end end if matched == 1 then @@ -226,7 +227,7 @@ local function update() end if state == States.WAITING_FOR_MATERIALS then - + local hasMaterial = false local hasProduct = false local items = input.getAllItems() @@ -241,7 +242,7 @@ local function update() end end end - + if hasMaterial == false or hasProduct == false then -- 没有原料 return @@ -276,7 +277,7 @@ local function update() input.moveItem(i + 1, output, 1) end end - + timeCounter = 0 setState(States.WAITING_FOR_MATERIALS) end diff --git a/README.MD b/README.MD index e9b16fa..652e9fd 100644 --- a/README.MD +++ b/README.MD @@ -34,5 +34,5 @@ rm v1.lua && wget http://e404.top:1111/PowerBank/v1.lua && ./v1.lua 741 ce8 9f6 ## 鸿蒙之眼 ```shell -rm v1.lua && wget http://e404.top:1111/EOH/v1.lua && ./v1.lua 741 ce8 9f6 +rm v1.lua && wget http://e404.top:1111/EOH/v1.lua && ./v1.lua 5 5 ```