Infernal-Expansion icon indicating copy to clipboard operation
Infernal-Expansion copied to clipboard

[1.19.2] Fix TerraBlender compatibility

Open Jonathing opened this issue 1 year ago • 0 comments

Hello. I am Jonathan. I work on GENESIS, and I made Galoblender.

Infernal Expansion seems to have some built-in TerraBlender compatibility, but it's rather poorly done and doesn't work. This PR fixes that.

  • Added TerraBlender as a compile-only dependency in the project.
  • Fixed the code in TerrablenderSurfaceRuleCompat to not use reflection when registering surface rules.
    • Whoever wrote this code to use reflection: I hope you get coal for Christmas this year.
  • Cancel MixinMinecraftServer if TerraBlender is loaded, since they handle surface rules themselves.
  • Made a TerraBlender region for IE's biomes.
    • This was not done before and is the primary reason why TerraBlender compatibility did not work.
  • Added a config option to control the weight of the new TerraBlender region.
    • Due to the way config values work in this mod, I've set an arbitrary maximum of 50.
  • Added some debug-level logging to all the new shit I wrote in this PR.

Jonathing avatar Oct 24 '24 18:10 Jonathing