mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 14:00:14 +00:00
Remove script sub-directory requirement
This commit is contained in:
1 parent
62b60fcdb3
commit
4908c7bb73
1 file changed
+1
-1
@@ -205,7 +205,7 @@ public class ConfigPack implements LoaderRegistrar {
|
|||||||
varScope.create(var.getKey(), var.getValue());
|
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) {
|
for(Map.Entry<String, InputStream> entry : entries) {
|
||||||
try(InputStream stream = entry.getValue()) {
|
try(InputStream stream = entry.getValue()) {
|
||||||
StructureScript structureScript = new StructureScript(stream, main, getRegistry(StructureScript.class), getRegistry(LootTable.class), (Registry<FunctionBuilder<?>>) (Object) getRegistry(FunctionBuilder.class));
|
StructureScript structureScript = new StructureScript(stream, main, getRegistry(StructureScript.class), getRegistry(LootTable.class), (Registry<FunctionBuilder<?>>) (Object) getRegistry(FunctionBuilder.class));
|
||||||
|
|||||||
Reference in new issue
Block a user