From 2bdfaef2d9b311ae514fcfe3e553b80652aa8de6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 26 Jul 2019 00:11:31 -0400 Subject: [PATCH] Fixed ores generating over spawnpoints --- core/src/io/anuke/mindustry/maps/filters/OreFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/maps/filters/OreFilter.java b/core/src/io/anuke/mindustry/maps/filters/OreFilter.java index 3c8194da5a..1f3482a4d2 100644 --- a/core/src/io/anuke/mindustry/maps/filters/OreFilter.java +++ b/core/src/io/anuke/mindustry/maps/filters/OreFilter.java @@ -25,7 +25,7 @@ public class OreFilter extends GenerateFilter{ public void apply(){ float noise = noise(in.x, in.y, scl, 1f, octaves, falloff); - if(noise > threshold){ + if(noise > threshold && in.ore != Blocks.spawn){ in.ore = ore; } }