Changes
- Move config loading to occur after capability inference (resolves #8)
Explanation
In this mod, entities have two types of capabilities: pre-set and inferred. Pre-set capabilities are explicitly defined in configuration files (e.g., a Blaze being able to set things on fire). Inferred capabilities, on the other hand, are determined dynamically at runtime based on Minecraft’s internal calculations (e.g., a mob’s size determining whether it can trample crops).
Previously, the mod loaded configuration files immediately on startup, before inferred capabilities were assigned to entity types. This caused issues when attempting to apply inferred configurations—since they technically didn’t exist yet, the system would reject them.
To fix this, configuration loading is now delayed until after the world has fully loaded. By that point, all inferred capabilities are already assigned, ensuring that the stored configurations can be correctly applied without rejection.