Open gniftygnome opened 1 year ago
Fabric API has an upstream issue tracking intentionally empty registries such as Terraform's boat types: FabricMC/fabric#3128. A mixin of our own shouldn't be too difficult either, but the injection point is within a lambda method and somewhat annoying to determine.
The 1.19.3 version of Terraform wood API's boat implementation originally would crash during startup if no mod defined a boat:
I hackishly worked around the problem with this change: https://github.com/TerraformersMC/Terraform/commit/65c2a969179af418e40712333aa518c54b274d90#diff-3aa7742763ec6703e9cc5d27b7ebc52970decc139eea351819a97b41f38b3580
However although using the wood API without any boats (a normal Nether implementation) now works correctly, it does issue an ERROR grade log line during start-up which may alarm somebody:
Perhaps the way to resolve this would be to add a dummy registry entry during startup, but I kind of hope somebody else knows a better way.