CafeteriaGuild / DeepMobLearning-Refabricated

Rework of Deep Mob Learning mod for FabricMC
https://www.curseforge.com/minecraft/mc-mods/deep-mob-learning-refabricated
GNU Lesser General Public License v3.0
39 stars 10 forks source link

Fix matter generation #155

Closed NickAcPT closed 2 months ago

NickAcPT commented 2 months ago

Currently, matter generation is broken due to the matter field being initialized too early in the MatterType enum.

Air 2 Air

The fix, which turns out to be simple, is to make use of kotlin's lazy to let the game initialize the field when it's first used, then value gets cached afterwards.