mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +07:00
Fixed ores generating over spawnpoints
This commit is contained in:
parent
2b0fbd9904
commit
2bdfaef2d9
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user