mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 23:24:52 +09:00
Typo Fixes, Uncomment virtual signals.
This commit is contained in:
1 parent
67e192a78f
commit
16ec26984a
2 files changed
+9
-9
No files matched your search
@@ -41,7 +41,7 @@ function AddEntity(entity)
|
||||
global.rxControls[entity.unit_number] = entity.get_or_create_control_behavior()
|
||||
entity.operable=false
|
||||
elseif entity.name == INV_COMBINATOR_NAME then
|
||||
global.invControls[entity.unit_number] = entity.get_or_create_control_behavior())
|
||||
global.invControls[entity.unit_number] = entity.get_or_create_control_behavior()
|
||||
entity.operable=false
|
||||
end
|
||||
end
|
||||
@@ -439,7 +439,7 @@ function UpdateInvCombinators()
|
||||
}
|
||||
local items = game.item_prototypes
|
||||
if global.invdata then
|
||||
for name,count in pairs(invdata) do
|
||||
for name,count in pairs(global.invdata) do
|
||||
if items[name] then
|
||||
invframe[#invframe+1] = {count=count,index=#invframe+1,signal={name=name,type="item"}}
|
||||
end
|
||||
@@ -493,11 +493,11 @@ remote.add_interface("clusterio",
|
||||
end,
|
||||
setFilePlayer = function(i)
|
||||
global.write_file_player = i
|
||||
end
|
||||
end,
|
||||
receiveInventory = function(jsoninvdata)
|
||||
local invdata = json:decode(jsoninvdata)
|
||||
-- invdata = {["iron-plates"]=1234,["copper-plates"]=5678,...}
|
||||
global.invdata = invdata
|
||||
UpdateInvCombinators()
|
||||
end
|
||||
end,
|
||||
})
|
||||
@@ -161,20 +161,20 @@ data:extend{
|
||||
subgroup = "virtual-signal-clusterio",
|
||||
order = "e[clusterio]-[1srctick]"
|
||||
},
|
||||
--[[{
|
||||
{
|
||||
type = "virtual-signal",
|
||||
name = "signal-srcid",
|
||||
icon = "__base__/graphics/icons/signal/signal_grey.png",
|
||||
subgroup = "virtual-signal-clusterio",
|
||||
order = "e[clusterio]-[2srcid]"
|
||||
},]]
|
||||
--[[{
|
||||
},
|
||||
{
|
||||
type = "virtual-signal",
|
||||
name = "signal-localid",
|
||||
icon = "__base__/graphics/icons/signal/signal_grey.png",
|
||||
subgroup = "virtual-signal-clusterio",
|
||||
order = "e[clusterio]-[3localid]"
|
||||
},]]
|
||||
},
|
||||
}
|
||||
|
||||
-- TX Combinator
|
||||
@@ -238,7 +238,7 @@ data:extend{
|
||||
result = RX_COMBINATOR_NAME,
|
||||
requester_paste_multiplier = 1
|
||||
},
|
||||
|
||||
}
|
||||
-- Inventory Combinator
|
||||
local inv = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"])
|
||||
inv.name = INV_COMBINATOR_NAME
|
||||
|
||||
Reference in new issue
Block a user