Add files via upload

master
AiTechEye 2022-02-10 17:55:46 +01:00 committed by GitHub
parent 85dcccbc74
commit ffd6f23e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,10 @@ lakes.set_lake=function(def)
local c_air = minetest.get_content_id("air")
local nodes={}
local pos=def.pos
if def.on_generate then
def.on_generate(pos)
end
nodes[c_source]=true
@ -64,6 +68,10 @@ lakes.set_lake=function(def)
vox:write_to_map()
vox:update_map()
vox:update_liquids()
if def.after_generate then
def.after_generate(pos)
end
end
minetest.register_on_generated(function(min, max, seed)