mirror of
https://github.com/APercy/airutils
synced 2025-09-23 11:06:25 +02:00
changed how biofuel is enabled
This commit is contained in:
parent
08f7200caf
commit
ff14be2bbe
7
init.lua
7
init.lua
@ -44,7 +44,12 @@ dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "light.lua")
|
||||
dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "physics_lib.lua")
|
||||
dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "lib_planes" .. DIR_DELIM .. "init.lua")
|
||||
|
||||
if not minetest.settings:get_bool('airutils.disable_biofuel') then
|
||||
local is_biofuel_installed = false
|
||||
if biomass then
|
||||
if biomass.convertible_groups then is_biofuel_installed = true end
|
||||
end
|
||||
local enable_internal_bioduel = minetest.settings:get_bool('airutils.force_enable_biofuel')
|
||||
if not is_biofuel_installed or enable_internal_bioduel then
|
||||
dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "airutils_biofuel.lua")
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user