mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-14 12:51:20 +00:00
fix terrascript loading logging
This commit is contained in:
@@ -35,7 +35,7 @@ public class StructureScript {
|
||||
private final String id;
|
||||
private final LinkedHashMap<Location, StructureBuffer> cache;
|
||||
|
||||
public StructureScript(InputStream inputStream, TerraPlugin main, ScriptRegistry registry, LootRegistry lootRegistry, CheckCache cache) {
|
||||
public StructureScript(InputStream inputStream, TerraPlugin main, ScriptRegistry registry, LootRegistry lootRegistry, CheckCache cache) throws ParseException {
|
||||
Parser parser;
|
||||
try {
|
||||
parser = new Parser(IOUtils.toString(inputStream));
|
||||
@@ -53,11 +53,7 @@ public class StructureScript {
|
||||
.addFunction("loot", new LootFunctionBuilder(main, lootRegistry))
|
||||
.addFunction("entity", new EntityFunctionBuilder(main));
|
||||
|
||||
try {
|
||||
block = parser.parse();
|
||||
} catch(ParseException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
block = parser.parse();
|
||||
this.id = parser.getID();
|
||||
this.cache = new LinkedHashMap<Location, StructureBuffer>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user