diff --git a/src/main/java/com/provismet/AdditionalArmoury/AdditionalArmouryMain.java b/src/main/java/com/provismet/AdditionalArmoury/AdditionalArmouryMain.java index d3551cd..f33ba09 100644 --- a/src/main/java/com/provismet/AdditionalArmoury/AdditionalArmouryMain.java +++ b/src/main/java/com/provismet/AdditionalArmoury/AdditionalArmouryMain.java @@ -3,11 +3,6 @@ import com.provismet.AdditionalArmoury.registries.AAEnchantmentComponentTypes; import com.provismet.AdditionalArmoury.registries.*; import com.provismet.AdditionalArmoury.utility.registry.AARegistries; -import net.minecraft.MinecraftVersion; -import net.minecraft.client.MinecraftClient; -import net.minecraft.registry.DynamicRegistryManager; -import net.minecraft.registry.RegistryKeys; -import net.minecraft.server.MinecraftServer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -51,7 +46,7 @@ public void onInitialize () { AAStatusEffects.register(); AASettings.read(); - // TODO: It's enchanted loot is currently unavailable. + // TODO: Enchanted loot is currently unavailable. LootTableEvents.MODIFY.register((id, tableBuilder, source) -> { if (source.isBuiltin() || AASettings.shouldOverrideDatapacks()) { if (LootTables.NETHER_BRIDGE_CHEST.equals(id)) { diff --git a/src/main/java/com/provismet/AdditionalArmoury/registries/AAEnchantments.java b/src/main/java/com/provismet/AdditionalArmoury/registries/AAEnchantments.java index 8ab52d3..3535ebe 100644 --- a/src/main/java/com/provismet/AdditionalArmoury/registries/AAEnchantments.java +++ b/src/main/java/com/provismet/AdditionalArmoury/registries/AAEnchantments.java @@ -55,6 +55,7 @@ private static RegistryKey of (String name) { return RegistryKey.of(RegistryKeys.ENCHANTMENT, AdditionalArmouryMain.identifier(name)); } + // This only executes as part of data generation. It does NOT create files, it only pre-loads the registry. public static void bootstrap (Registerable registerable) { RegistryEntryLookup damageLookup = registerable.getRegistryLookup(RegistryKeys.DAMAGE_TYPE); RegistryEntryLookup enchantmentLookup = registerable.getRegistryLookup(RegistryKeys.ENCHANTMENT);