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:
Alexander Medvedev committed 2026-02-03 23:35:31 +01:00
1 parent 2f29fcef8d
commit 835262a85a
92 files changed
+1376 -18011

No files matched your search

+3 -4
View File
@@ -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,