mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 16:23:12 +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()
|
global.rxControls[entity.unit_number] = entity.get_or_create_control_behavior()
|
||||||
entity.operable=false
|
entity.operable=false
|
||||||
elseif entity.name == INV_COMBINATOR_NAME then
|
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
|
entity.operable=false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -439,7 +439,7 @@ function UpdateInvCombinators()
|
|||||||
}
|
}
|
||||||
local items = game.item_prototypes
|
local items = game.item_prototypes
|
||||||
if global.invdata then
|
if global.invdata then
|
||||||
for name,count in pairs(invdata) do
|
for name,count in pairs(global.invdata) do
|
||||||
if items[name] then
|
if items[name] then
|
||||||
invframe[#invframe+1] = {count=count,index=#invframe+1,signal={name=name,type="item"}}
|
invframe[#invframe+1] = {count=count,index=#invframe+1,signal={name=name,type="item"}}
|
||||||
end
|
end
|
||||||
@@ -493,11 +493,11 @@ remote.add_interface("clusterio",
|
|||||||
end,
|
end,
|
||||||
setFilePlayer = function(i)
|
setFilePlayer = function(i)
|
||||||
global.write_file_player = i
|
global.write_file_player = i
|
||||||
end
|
end,
|
||||||
receiveInventory = function(jsoninvdata)
|
receiveInventory = function(jsoninvdata)
|
||||||
local invdata = json:decode(jsoninvdata)
|
local invdata = json:decode(jsoninvdata)
|
||||||
-- invdata = {["iron-plates"]=1234,["copper-plates"]=5678,...}
|
-- invdata = {["iron-plates"]=1234,["copper-plates"]=5678,...}
|
||||||
global.invdata = invdata
|
global.invdata = invdata
|
||||||
UpdateInvCombinators()
|
UpdateInvCombinators()
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
@@ -161,20 +161,20 @@ data:extend{
|
|||||||
subgroup = "virtual-signal-clusterio",
|
subgroup = "virtual-signal-clusterio",
|
||||||
order = "e[clusterio]-[1srctick]"
|
order = "e[clusterio]-[1srctick]"
|
||||||
},
|
},
|
||||||
--[[{
|
{
|
||||||
type = "virtual-signal",
|
type = "virtual-signal",
|
||||||
name = "signal-srcid",
|
name = "signal-srcid",
|
||||||
icon = "__base__/graphics/icons/signal/signal_grey.png",
|
icon = "__base__/graphics/icons/signal/signal_grey.png",
|
||||||
subgroup = "virtual-signal-clusterio",
|
subgroup = "virtual-signal-clusterio",
|
||||||
order = "e[clusterio]-[2srcid]"
|
order = "e[clusterio]-[2srcid]"
|
||||||
},]]
|
},
|
||||||
--[[{
|
{
|
||||||
type = "virtual-signal",
|
type = "virtual-signal",
|
||||||
name = "signal-localid",
|
name = "signal-localid",
|
||||||
icon = "__base__/graphics/icons/signal/signal_grey.png",
|
icon = "__base__/graphics/icons/signal/signal_grey.png",
|
||||||
subgroup = "virtual-signal-clusterio",
|
subgroup = "virtual-signal-clusterio",
|
||||||
order = "e[clusterio]-[3localid]"
|
order = "e[clusterio]-[3localid]"
|
||||||
},]]
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- TX Combinator
|
-- TX Combinator
|
||||||
@@ -238,7 +238,7 @@ data:extend{
|
|||||||
result = RX_COMBINATOR_NAME,
|
result = RX_COMBINATOR_NAME,
|
||||||
requester_paste_multiplier = 1
|
requester_paste_multiplier = 1
|
||||||
},
|
},
|
||||||
|
}
|
||||||
-- Inventory Combinator
|
-- Inventory Combinator
|
||||||
local inv = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"])
|
local inv = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"])
|
||||||
inv.name = INV_COMBINATOR_NAME
|
inv.name = INV_COMBINATOR_NAME
|
||||||
|
|||||||
Reference in new issue
Block a user