This commit is contained in:
gnembon committed 2020-05-27 00:46:44 -03:00
1 parent 571a77ce64
commit 243c3290ae
6 files changed
+13 -13

No files matched your search

@@ -1195,7 +1195,7 @@ public class CarpetExpression
String reqString = requested.getString();
String structureName = FeatureGenerator.featureToStructure.get(reqString);
if (structureName == null) throw new InternalExpressionException("Unknown structure: " + reqString);
structure = StructureFeature.field_24842.get(structureName.toLowerCase(Locale.ROOT));
structure = StructureFeature.STRUCTURES.get(structureName.toLowerCase(Locale.ROOT));
if (structure == null) throw new InternalExpressionException("Unsupported structure: " + structureName);
}
if (lv.size() > locator.offset+1)
@@ -1212,7 +1212,7 @@ public class CarpetExpression
return (_c, _t) -> ret;
}
Map<Value, Value> ret = new HashMap<>();
for(StructureFeature<?> str : StructureFeature.field_24842.values())
for(StructureFeature<?> str : StructureFeature.STRUCTURES.values())
{
StructureStart start = FeatureGenerator.shouldStructureStartAt(world, pos, str, needSize);
if (start == null) continue;