From acf9111141563cddc9e5e4b2ff56d92ff05a13b3 Mon Sep 17 00:00:00 2001 From: jshipsey Date: Mon, 7 Jun 2021 08:12:17 -0400 Subject: [PATCH] mig fix --- server/src/migrations/V40__meat_fix.sql | 5 +++++ world/src/layer/scatter.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 server/src/migrations/V40__meat_fix.sql diff --git a/server/src/migrations/V40__meat_fix.sql b/server/src/migrations/V40__meat_fix.sql new file mode 100644 index 0000000000..2428708072 --- /dev/null +++ b/server/src/migrations/V40__meat_fix.sql @@ -0,0 +1,5 @@ +-- xx +UPDATE item +SET item_definition_id = 'common.items.crafting_ing.cloth.linen_red' WHERE item_definition_id = 'common.items.crafting_ing.cloth_scraps_red'; +UPDATE item +SET item_definition_id = 'common.items.crafting_ing.cloth.linen' WHERE item_definition_id = 'common.items.crafting_ing.cloth_scraps'; \ No newline at end of file diff --git a/world/src/layer/scatter.rs b/world/src/layer/scatter.rs index 9bbfb0593d..1afc55bbfa 100644 --- a/world/src/layer/scatter.rs +++ b/world/src/layer/scatter.rs @@ -163,10 +163,10 @@ pub fn apply_scatter_to(canvas: &mut Canvas, rng: &mut impl Rng) { ((c.rockiness - 0.5).max(0.025) * 1.0e-3, None) }), (Copper, false, |c, _| { - ((c.rockiness - 0.1).max(0.025) * 1.5e-3, None) + ((c.rockiness - 0.5).max(0.0) * 1.5e-3, None) }), (Tin, false, |c, _| { - ((c.rockiness - 0.5).max(0.025) * 1.5e-3, None) + ((c.rockiness - 0.5).max(0.0) * 1.5e-3, None) }), // Don't spawn Mushrooms in snowy regions (Mushroom, false, |c, _| {