jbruechert / agriculture

6 stars 3 forks source link

Use improved TNG farming API #3

Closed lnjX closed 5 years ago

jbruechert commented 5 years ago

I I remember I once planned to port this mod to the TNG API, and now the API got ported to the mod 😀

I'll test & merge it in the evening

jbruechert commented 5 years ago
2019-07-14 17:15:44: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'agriculture' in callback item_OnPlace(): Runtime error from mod 'agriculture' in callback node_on_construct(): /home/jbb/.minetest/mods/agriculture/src/api_crops.lua:159: attempt to call
2019-07-14 17:15:44: ERROR[Main]:  field 'get_heat' (a nil value)
2019-07-14 17:15:44: ERROR[Main]: stack traceback:
2019-07-14 17:15:44: ERROR[Main]:       /home/jbb/.minetest/mods/agriculture/src/api_crops.lua:159: in function 'start_timer'
2019-07-14 17:15:44: ERROR[Main]:       /home/jbb/.minetest/mods/agriculture/src/api_crops.lua:300: in function </home/jbb/.minetest/mods/agriculture/src/api_crops.lua:299>
2019-07-14 17:15:44: ERROR[Main]:       [C]: in function 'set_node'
2019-07-14 17:15:44: ERROR[Main]:       /home/jbb/.minetest/mods/agriculture/src/api_crops.lua:68: in function </home/jbb/.minetest/mods/agriculture/src/api_crops.lua:21>
2019-07-14 17:15:44: ERROR[Main]: stack traceback:
2019-07-14 17:15:44: ERROR[Main]:       [C]: in function 'set_node'
2019-07-14 17:15:44: ERROR[Main]:       /home/jbb/.minetest/mods/agriculture/src/api_crops.lua:68: in function </home/jbb/.minetest/mods/agriculture/src/api_crops.lua:21>
lnjX commented 5 years ago

Yes, core.get_heat() and core.get_humidity() require Mintest 5.0.0+.

jbruechert commented 5 years ago

I thought you were still using 0.4.X because that's the version in debian xD

lnjX commented 5 years ago

debian experimental ftw!