Fixes issues with ores, closes https://github.com/FTBTeam/FTB-Continuum/issues/461
This commit is contained in:
parent
10e91deeff
commit
5377941e10
2 changed files with 5 additions and 1 deletions
|
@ -112,10 +112,11 @@ public class TechRebornWorldGen implements IWorldGenerator {
|
||||||
for (OreConfig defaultOre : defaultOres) {
|
for (OreConfig defaultOre : defaultOres) {
|
||||||
boolean hasFoundOre = false;
|
boolean hasFoundOre = false;
|
||||||
for (OreConfig ore : config) {
|
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;
|
hasFoundOre = true;
|
||||||
// Should allow for states to be saved/loaded
|
// Should allow for states to be saved/loaded
|
||||||
ore.state = defaultOre.state;
|
ore.state = defaultOre.state;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!hasFoundOre) {
|
if (!hasFoundOre) {
|
||||||
|
|
|
@ -64,4 +64,7 @@ public class OreConfig {
|
||||||
this.minYHeight = minYHeight;
|
this.minYHeight = minYHeight;
|
||||||
this.maxYHeight = maxYHeight;
|
this.maxYHeight = maxYHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public OreConfig() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue