mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-02 16:05:29 +00:00
Merge pull request #200 from Astrashh/astrash/tesf-anywhere
Remove script sub-directory requirement
This commit is contained in:
commit
444324e7c6
@ -205,7 +205,7 @@ public class ConfigPack implements LoaderRegistrar {
|
||||
varScope.create(var.getKey(), var.getValue());
|
||||
}
|
||||
|
||||
loader.open("structures/data", ".tesf").thenEntries(entries -> {
|
||||
loader.open("", ".tesf").thenEntries(entries -> {
|
||||
for(Map.Entry<String, InputStream> entry : entries) {
|
||||
try(InputStream stream = entry.getValue()) {
|
||||
StructureScript structureScript = new StructureScript(stream, main, getRegistry(StructureScript.class), getRegistry(LootTable.class), (Registry<FunctionBuilder<?>>) (Object) getRegistry(FunctionBuilder.class));
|
||||
|
Loading…
x
Reference in New Issue
Block a user