mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-14 11:46:06 +00:00
implement StringIdentifiable
This commit is contained in:
@@ -37,7 +37,7 @@ public class TerraScriptAddon extends TerraAddon {
|
||||
for(Map.Entry<String, InputStream> entry : entries) {
|
||||
try {
|
||||
StructureScript structureScript = new StructureScript(entry.getValue(), main, structureRegistry, lootRegistry, event.getPack().getRegistryFactory().create());
|
||||
structureRegistry.register(structureScript.getId(), structureScript);
|
||||
structureRegistry.register(structureScript.getID(), structureScript);
|
||||
} catch(ParseException e) {
|
||||
throw new LoadException("Failed to load script: ", e);
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ public class StructureScript implements Structure {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
public String getID() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user