Skip to content

Commit

Permalink
v3.2.0 - Mercury Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho1060 committed Jun 28, 2022
1 parent 088eade commit 9c75b5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions source/unit/start.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ maxAmountOfElementsRefreshedByTick = 200 --export: the maximum number of element
]]

system.print("-----------------------------------")
system.print("DU-Storage-Monitoring version 3.1.0")
system.print("DU-Storage-Monitoring version 3.2.0")
system.print("-----------------------------------")

options = {}
Expand Down Expand Up @@ -201,17 +201,17 @@ for slot_name, slot in pairs(unit) do
if
type(slot) == "table"
and type(slot.export) == "table"
and slot.getElementClass
and slot.getClass
then
if slot.getElementClass():lower():find("coreunit") then
if slot.getClass():lower():find("coreunit") then
core = slot
end
if slot.getElementClass():lower() == 'screenunit' then
if slot.getClass():lower() == 'screenunit' then
slot.slotname = slot_name
table.insert(screens,slot)
slot.setRenderScript(renderScript)
end
if slot.getElementClass():lower() == 'databankunit' then
if slot.getClass():lower() == 'databankunit' then
databank = slot
end
end
Expand Down Expand Up @@ -284,7 +284,7 @@ MyCoroutines = {
for i = 1, #elementsIdList, 1 do
initIndex = i
local id = elementsIdList[i]
local elementType = core.getElementTypeById(id):lower()
local elementType = core.getElementDisplayNameById(id):lower()
if elementType:lower():find("container") then
table.insert(storageIdList, id)
end
Expand All @@ -302,7 +302,7 @@ MyCoroutines = {
function()
local storage_elements = {}
for elemindex,id in ipairs(storageIdList) do
local elementType = core.getElementTypeById(id)
local elementType = core.getElementDisplayNameById(id)
if elementType:lower():find("container") then
local elementName = core.getElementNameById(id)
if
Expand Down

0 comments on commit 9c75b5f

Please sign in to comment.