Fix salt resource not being placed
This commit is contained in:
parent
04859fe034
commit
5610ae8ef5
1 changed files with 9 additions and 1 deletions
|
|
@ -1,10 +1,14 @@
|
||||||
local resource_autoplace = require('resource-autoplace');
|
local resource_autoplace = require('resource-autoplace');
|
||||||
|
local item_sounds = require('__base__.prototypes.item_sounds')
|
||||||
|
|
||||||
local futil = require("util");
|
local futil = require("util");
|
||||||
local util = require("data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
if util.me.salt() then
|
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"])
|
local particle = futil.table.deepcopy(data.raw["optimized-particle"]["stone-particle"])
|
||||||
particle.name = "salt-particle"
|
particle.name = "salt-particle"
|
||||||
|
|
@ -107,7 +111,11 @@ data:extend({
|
||||||
},
|
},
|
||||||
subgroup = "raw-resource",
|
subgroup = "raw-resource",
|
||||||
order = "t-c-a",
|
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",
|
type = "recipe",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue