Skip to content

Commit

Permalink
v0.4.3 - fix of removing belts from blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
oof2win2 committed Mar 12, 2021
1 parent 9015177 commit 2a75794
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.4.3
Date: 2021-03-12
Bugfixes:
- Belts no longer removed from blueprints when using the mod (base game bug)
---------------------------------------------------------------------------------------------------
Version: 0.4.2
Date: 2021-02-21
Changes:
Expand Down
2 changes: 2 additions & 0 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ script.on_init(function ()
game.forces[index].technologies["logistic-system"].researched = true

if settings.startup["give-quickstart-parmor"].value == true then
if (remote.interfaces["freeplay"] == nil) then return end
local created_items = remote.call("freeplay", "get_created_items")
created_items["power-armor"] = 1
created_items["solar-panel-equipment"] = 21
Expand All @@ -14,6 +15,7 @@ script.on_init(function ()
remote.call("freeplay", "set_created_items", created_items)
end
if settings.startup["give-quickstart-stuff"].value == true then
if (remote.interfaces["freeplay"] == nil) then return end
local created_items = remote.call("freeplay", "get_created_items")
created_items["roboport"] = 10
created_items["logistic-robot"] = 100
Expand Down
10 changes: 2 additions & 8 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
local belts = {}
for _,category in pairs{"transport-belt","splitter","underground-belt"} do
for name,proto in pairs(data.raw[category]) do
belts[name] = proto.localised_name or {"entity-name." .. name}
end
end
for name,proto in pairs(data.raw.item) do
if proto.place_result and belts[proto.place_result] then
proto.localised_name = proto.localised_name or belts[proto.place_result]
proto.place_result = nil
-- belts[name] = proto.localised_name or {"entity-name." .. name}
proto.collision_mask = {"item-layer", "object-layer", "player-layer", "water-tile", "ground-tile", "transport-belt-layer"}
end
end

Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "no-belts",
"version": "0.4.2",
"version": "0.4.3",
"title": "No Belts",
"author": "oof2win2",
"description": "Disables the ability to place belts. Instead, you are able to use logistic robots for all of your needs",
Expand Down
Binary file removed no-belts_0.4.2.zip
Binary file not shown.

0 comments on commit 2a75794

Please sign in to comment.