Skip to content

Commit

Permalink
Update for Factorio 1.1 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hornwitser authored Nov 30, 2020
1 parent ec75ecf commit dedc72b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.18.0
Date: 30. 11. 2020
Changes:
- Updated for Factorio 1.1.
---------------------------------------------------------------------------------------------------
Version: 1.17.1
Date: 03. 10. 2020
Features:
Expand Down
8 changes: 3 additions & 5 deletions src/control.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require("util")
require("config")
require("mod-gui")
local mod_gui = require("mod-gui")
require("LinkedList")

------------------------------------------------------------
Expand Down Expand Up @@ -82,7 +82,6 @@ function AddEntity(entity)
AddLink(global.outputChestsData.entitiesData, {
entity = entity,
inv = entity.get_inventory(defines.inventory.chest),
filterCount = entity.prototype.filter_count
}, entity.unit_number)
elseif entity.name == INPUT_TANK_NAME then
--add the chests to a lists if these chests so they can be interated over
Expand Down Expand Up @@ -517,12 +516,11 @@ end
function GetOutputChestRequest(requests, entityData)
local entity = entityData.entity
local chestInventory = entityData.inv
local filterCount = entityData.filterCount
--Don't insert items into the chest if it's being deconstructed
--as that just leads to unnecessary bot work
if entity.valid and not entity.to_be_deconstructed(entity.force) then
--Go though each request slot
for i = 1, filterCount do
for i = 1, entity.request_slot_count do
local requestItem = entity.get_request_slot(i)

--Some request slots may be empty and some items are not allowed
Expand Down Expand Up @@ -832,7 +830,7 @@ function UpdateInvCombinators()

for i,invControl in pairs(global.invControls) do
if invControl.valid then
invControl.parameters={parameters=invframe}
invControl.parameters=invframe
invControl.enabled=true
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/info.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "clusterio",
"version": "1.17.1",
"version": "1.18.0",
"title": "Clusterio",
"author": "Danielv123 & Keyboardhack & justarandomgeek & AreYouScared & psihius & Godmave",
"contact": "danielv@live.no",
"homepage": "https://github.com/clusterio/factorioClusterio",
"description": "Allows transfer of items, fluids, research and signals between servers. *Server owners, see https://github.com/clusterio/factorioClusterio for installation instructions*",
"factorio_version": "0.18"
"factorio_version": "1.1"
}

0 comments on commit dedc72b

Please sign in to comment.