chore: move chunk gen settings from runtime to compile time parsing
Bin size decreased, Startup time decreased by a lot in debug, lower memory usage
This commit is contained in:
1 parent
2f29fcef8d
commit
835262a85a
92 files changed
+1376
-18011
No files matched your search
@@ -92,14 +92,13 @@ pub(crate) fn build() -> TokenStream {
|
||||
|
||||
static_regs.iter().map(|static_reg| {
|
||||
let registry_id = if static_reg.registry_id.contains(':') {
|
||||
ResourceLocation::from(static_reg.registry_id)
|
||||
static_reg.registry_id.to_string()
|
||||
} else {
|
||||
ResourceLocation::vanilla(static_reg.registry_id)
|
||||
format!("minecraft:{}", static_reg.registry_id)
|
||||
};
|
||||
|
||||
let registry_entries = static_reg.entries.iter().map(|entry| {
|
||||
let entry_id =
|
||||
ResourceLocation::vanilla(entry.name);
|
||||
let entry_id = format!("minecraft:{}", entry.name);
|
||||
|
||||
RegistryEntryData {
|
||||
entry_id,
|
||||
|
||||
Reference in new issue
Block a user