Skip to content

Commit

Permalink
Change names of logistics containers (#346)
Browse files Browse the repository at this point in the history
* Update vlayer.lua

* Change all other occurrences

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
  • Loading branch information
PHIDIAS0303 and Cooldude2606 authored Jan 4, 2025
1 parent 1042897 commit e64824d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions exp_legacy/module/config/personal_logistic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -554,39 +554,39 @@ return {
min = 50,
max = 100,
},
["logistic-chest-passive-provider"] = {
["passive-provider-chest"] = {
key = 54,
upgrade_of = nil,
type = "chest",
stack = 50,
min = 50,
max = 50,
},
["logistic-chest-storage"] = {
["storage-chest"] = {
key = 55,
upgrade_of = nil,
type = "chest",
stack = 50,
min = 50,
max = 50,
},
["logistic-chest-requester"] = {
["requester-chest"] = {
key = 56,
upgrade_of = nil,
type = "chest",
stack = 50,
min = 50,
max = 50,
},
["logistic-chest-buffer"] = {
["buffer-chest"] = {
key = 57,
upgrade_of = nil,
type = "chest",
stack = 50,
min = 50,
max = 50,
},
["logistic-chest-active-provider"] = {
["active-provider-chest"] = {
key = 58,
upgrade_of = nil,
type = "chest",
Expand Down
2 changes: 1 addition & 1 deletion exp_legacy/module/config/preset_player_quickbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
-- @config Preset-Player-Quickbar

return {
dangerarea = { "transport-belt", "underground-belt", "splitter", "pipe", "pipe-to-ground", "inserter", "fast-inserter", "long-handed-inserter", "stack-inserter", "roboport", "small-electric-pole", "medium-electric-pole", "big-electric-pole", "substation", nil, "rail", "rail-signal", "rail-chain-signal", "landfill", "cliff-explosives", "fast-transport-belt", "fast-underground-belt", "fast-splitter", "pipe", "pipe-to-ground", "fast-inserter", "long-handed-inserter", "stack-inserter", "stack-filter-inserter", "roboport", [81] = "red-wire", [82] = "green-wire", [83] = "arithmetic-combinator", [84] = "decider-combinator", [85] = "constant-combinator", [86] = "power-switch", [91] = "logistic-chest-active-provider", [92] = "logistic-chest-passive-provider", [93] = "logistic-chest-storage", [94] = "logistic-chest-buffer", [95] = "logistic-chest-requester", [96] = "roboport" },
dangerarea = { "transport-belt", "underground-belt", "splitter", "pipe", "pipe-to-ground", "inserter", "fast-inserter", "long-handed-inserter", "stack-inserter", "roboport", "small-electric-pole", "medium-electric-pole", "big-electric-pole", "substation", nil, "rail", "rail-signal", "rail-chain-signal", "landfill", "cliff-explosives", "fast-transport-belt", "fast-underground-belt", "fast-splitter", "pipe", "pipe-to-ground", "fast-inserter", "long-handed-inserter", "stack-inserter", "stack-filter-inserter", "roboport", [81] = "red-wire", [82] = "green-wire", [83] = "arithmetic-combinator", [84] = "decider-combinator", [85] = "constant-combinator", [86] = "power-switch", [91] = "active-provider-chest", [92] = "passive-provider-chest", [93] = "storage-chest", [94] = "buffer-chest", [95] = "requester-chest", [96] = "roboport" },
}
10 changes: 5 additions & 5 deletions exp_legacy/module/modules/control/vlayer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ end
-- @tparam[opt] LuaPlayer player The player to show as the last user of the interface
-- @treturn LuaEntity The entity that was created for the interface
function vlayer.create_input_interface(surface, position, circuit, last_user)
local interface = surface.create_entity{ name = "logistic-chest-storage", position = position, force = "neutral" }
local interface = surface.create_entity{ name = "storage-chest", position = position, force = "neutral" }
table.insert(vlayer_data.entity_interfaces.storage_input, interface)

if last_user then
Expand Down Expand Up @@ -391,7 +391,7 @@ end
-- @tparam[opt] LuaPlayer player The player to show as the last user of the interface
-- @treturn LuaEntity The entity that was created for the interface
function vlayer.create_output_interface(surface, position, circuit, last_user)
local interface = surface.create_entity{ name = "logistic-chest-requester", position = position, force = "neutral" }
local interface = surface.create_entity{ name = "requester-chest", position = position, force = "neutral" }
table.insert(vlayer_data.entity_interfaces.storage_output, interface)

if last_user then
Expand Down Expand Up @@ -682,7 +682,7 @@ end
-- @treturn MapPosition The position the interface was at, or nil if no interface was found
function vlayer.remove_interface(surface, position)
local entities = surface.find_entities_filtered{
name = { "logistic-chest-storage", "logistic-chest-requester", "constant-combinator", "electric-energy-interface" },
name = { "storage-chest", "requester-chest", "constant-combinator", "electric-energy-interface" },
force = "neutral",
position = position,
radius = 2,
Expand All @@ -699,7 +699,7 @@ function vlayer.remove_interface(surface, position)
local pos = interface.position

-- Return the type of interface removed and do some clean up
if name == "logistic-chest-storage" then
if name == "storage-chest" then
local inventory = assert(interface.get_inventory(defines.inventory.chest))
ExpUtil.transfer_inventory_to_surface{
inventory = inventory,
Expand All @@ -711,7 +711,7 @@ function vlayer.remove_interface(surface, position)
interface.destroy()

return "storage-input", pos
elseif name == "logistic-chest-requester" then
elseif name == "requester-chest" then
local inventory = assert(interface.get_inventory(defines.inventory.chest))
ExpUtil.transfer_inventory_to_surface{
inventory = inventory,
Expand Down

0 comments on commit e64824d

Please sign in to comment.