mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 08:07:51 +00:00
use single-parameter Keyed registration
This commit is contained in:
1 parent
1c93c2bbb4
commit
6d844c2d3a
3 files changed
+12
-12
No files matched your search
+2
-3
@@ -47,7 +47,7 @@ public class TerraScriptAddon implements AddonInitializer {
|
||||
try {
|
||||
String id = StringUtil.fileName(entry.getKey());
|
||||
return new StructureScript(entry.getValue(),
|
||||
id,
|
||||
addon.key(id),
|
||||
platform,
|
||||
structureRegistry,
|
||||
lootRegistry,
|
||||
@@ -57,8 +57,7 @@ public class TerraScriptAddon implements AddonInitializer {
|
||||
}
|
||||
})
|
||||
.toList()
|
||||
.forEach(structureScript -> structureRegistry.register(addon.key(structureScript.getID()),
|
||||
structureScript)))
|
||||
.forEach(structureRegistry::register))
|
||||
.close();
|
||||
})
|
||||
.priority(2)
|
||||
|
||||
Reference in new issue
Block a user