maikerumine/mc2plus

mcl_util.layer_to_y outputs "nil"

Opened this issue · 0 comments

Hi I'm in the process of making my mod compatible with MC2 and kept crashing with the following error:

ERROR[Main]: ...ineClone2-5fb9b8b\mods\mc2plus-master\mc_biomes/ores.lua:55: attempt to call field 'layer_to_y' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]: ...ineClone2-5fb9b8b\mods\mc2plus-master\mc_biomes/ores.lua:55: in main chunk
ERROR[Main]: [C]: in function 'dofile'
ERROR[Main]: ...ineClone2-5fb9b8b\mods\mc2plus-master\mc_biomes\init.lua:54: in main chunk

I'm going to try commenting out all instances of this function to see if I can make it work locally.