forked from Minetest/dynamic_liquid
Removing strict dependency on the default mod
If one should desire to use this mod for liquid in a non-default-dependent game, I've made the dependency on default optional. Note that the only thing this mod does in that case is define an API, all the rest of its features are moot (since they act on default-defined liquids and mapgen clay).mineclone_compatibility
parent
dbd14626eb
commit
58348b9b4c
|
@ -1 +1 @@
|
||||||
default
|
default?
|
4
init.lua
4
init.lua
|
@ -68,6 +68,10 @@ dynamic_liquid.liquid_abm = function(liquid, flowing_liquid, chance)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not minetest.get_modpath("default") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local water = minetest.setting_getbool("dynamic_liquid_water")
|
local water = minetest.setting_getbool("dynamic_liquid_water")
|
||||||
water = water or water == nil -- default true
|
water = water or water == nil -- default true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue