This commit is contained in:
modmuss50 2018-09-19 16:46:32 +01:00
parent 10e91deeff
commit 5377941e10
2 changed files with 5 additions and 1 deletions

View file

@ -112,10 +112,11 @@ public class TechRebornWorldGen implements IWorldGenerator {
for (OreConfig defaultOre : defaultOres) {
boolean hasFoundOre = false;
for (OreConfig ore : config) {
if (ore.blockName.equals(defaultOre.blockName) && ore.meta == defaultOre.meta) {
if (ore.blockName.replaceAll(":", ".").equals(defaultOre.blockName.replaceAll(":", ".")) && ore.meta == defaultOre.meta) {
hasFoundOre = true;
// Should allow for states to be saved/loaded
ore.state = defaultOre.state;
break;
}
}
if (!hasFoundOre) {

View file

@ -64,4 +64,7 @@ public class OreConfig {
this.minYHeight = minYHeight;
this.maxYHeight = maxYHeight;
}
public OreConfig() {
}
}