1
0
Fork 0

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
FaceDeer 2017-01-29 15:28:48 -07:00
parent dbd14626eb
commit 58348b9b4c
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
default
default?

View File

@ -68,6 +68,10 @@ dynamic_liquid.liquid_abm = function(liquid, flowing_liquid, chance)
})
end
if not minetest.get_modpath("default") then
return
end
local water = minetest.setting_getbool("dynamic_liquid_water")
water = water or water == nil -- default true