From 5610ae8ef5c86407d410af4d2f82ffc99c94e084 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 1 Nov 2025 14:07:29 +0100 Subject: [PATCH 1/2] Fix salt resource not being placed --- bzchlorine2/prototypes/salt.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bzchlorine2/prototypes/salt.lua b/bzchlorine2/prototypes/salt.lua index a346e78..a40abce 100644 --- a/bzchlorine2/prototypes/salt.lua +++ b/bzchlorine2/prototypes/salt.lua @@ -1,10 +1,14 @@ local resource_autoplace = require('resource-autoplace'); +local item_sounds = require('__base__.prototypes.item_sounds') local futil = require("util"); local util = require("data-util"); if util.me.salt() then +data.raw.planet.nauvis.map_gen_settings.autoplace_controls["salt"] = {} +data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["salt"] = {} +resource_autoplace.initialize_patch_set("salt", true) local particle = futil.table.deepcopy(data.raw["optimized-particle"]["stone-particle"]) particle.name = "salt-particle" @@ -107,7 +111,11 @@ data:extend({ }, subgroup = "raw-resource", order = "t-c-a", - stack_size = 50 + stack_size = 50, + weight = 20*kg, + inventory_move_sound = item_sounds.resource_inventory_move, + pick_sound = item_sounds.resource_inventory_pickup, + drop_sound = item_sounds.resource_inventory_move }, { type = "recipe", From 27f3ef00abe063a5ce26f77d2bb5a50718b9bb80 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 1 Nov 2025 22:50:16 +0100 Subject: [PATCH 2/2] 2.0.3 --- bzchlorine2/changelog.txt | 5 +++++ bzchlorine2/info.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bzchlorine2/changelog.txt b/bzchlorine2/changelog.txt index 018feb7..0d4d2f1 100644 --- a/bzchlorine2/changelog.txt +++ b/bzchlorine2/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.3 +Date: 01.11.2025 + Bug Fixes: + - Fix salt resource not being placed +--------------------------------------------------------------------------------------------------- Version: 2.0.2 Date: 22.10.2025 Bug Fixes: diff --git a/bzchlorine2/info.json b/bzchlorine2/info.json index 8035ac3..bc177c9 100644 --- a/bzchlorine2/info.json +++ b/bzchlorine2/info.json @@ -1,6 +1,6 @@ { "name": "bzchlorine2", - "version": "2.0.2", + "version": "2.0.3", "factorio_version": "2.0", "title": "Salt & Chlorine", "description": "Adds salt, chlorine and more to the base game. Reworks advanced circuit production.",