This commit is contained in:
Anuken
2021-07-17 11:09:38 -04:00
parent 820920e5f9
commit 55920e6242
5 changed files with 8 additions and 12 deletions

View File

@@ -75,8 +75,7 @@ public abstract class GenerateFilter{
/** localized display name */
public String name(){
var s = simpleName();
return Core.bundle.get("filter." + s);
return Core.bundle.get("filter." + simpleName());
}
public char icon(){
@@ -100,8 +99,6 @@ public abstract class GenerateFilter{
//utility generation functions
//TODO would be nice if these functions used the seed and ditched "in" completely; simplex should be stateless
protected float noise(GenerateInput in, float scl, float mag){
return Simplex.noise2d(seed, 1f, 0f, 1f / scl, in.x, in.y) * mag;
}
@@ -141,7 +138,7 @@ public abstract class GenerateFilter{
this.y = y;
}
public void begin(GenerateFilter filter, int width, int height, TileProvider buffer){
public void begin(int width, int height, TileProvider buffer){
this.buffer = buffer;
this.width = width;
this.height = height;