Add i18n support, add negative conditions

This commit is contained in:
Till Affeldt
2020-05-29 21:52:45 +02:00
parent 06f337b23e
commit dbce69be3b
7 changed files with 139 additions and 47 deletions

View File

@ -50,12 +50,12 @@ end)
climate_api.register_influence("light", function(pos)
pos = vector.add(pos, {x = 0, y = 1, z = 0})
return minetest.env:get_node_light(pos) or 0
return minetest.get_node_light(pos) or 0
end)
climate_api.register_influence("daylight", function(pos)
pos = vector.add(pos, {x = 0, y = 1, z = 0})
return minetest.env:get_node_light(pos, 0.5) or 0
return minetest.get_node_light(pos, 0.5) or 0
end)
climate_api.register_global_influence("time",