Skip to content

Commit

Permalink
fix: biome id is now of type Name
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrueckert committed May 19, 2020
1 parent 5fbea3b commit 87cd03d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.terasology.polyworld.biome;

import org.terasology.biomesAPI.Biome;
import org.terasology.naming.Name;

/**
* Different biome types
Expand Down Expand Up @@ -63,23 +64,23 @@ public enum WhittakerBiome implements Biome {
COAST("Coast", 2019),
LAKESHORE("Lakeshore", 2020);

private String id;
private Name id;
private String name;
private short hash;

WhittakerBiome(final String name, int hash) {
this.hash = (short) hash;
this.id = "WhittakerBiome:" + name().toLowerCase();
this.id = new Name("WhittakerBiome:" + name().toLowerCase());
this.name = name;
}

@Override
public String getId() {
public Name getId() {
return id;
}

@Override
public String getName() {
public String getDisplayName() {
return name;
}

Expand Down

0 comments on commit 87cd03d

Please sign in to comment.