Add files via upload

master
Michiel 2018-09-23 18:19:09 +02:00 committed by GitHub
parent c65923f2dc
commit ef91a73302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
-- Parameters
local YMAX = 170 -- Maximum altitude for pools
local FLOW = 256
local FLOW = 32
-- Stuff
@ -16,7 +16,7 @@ highlandpools = {}
function highlandpools_remtree(x, y, z, area, data)
local c_tree = minetest.get_content_id("default:tree")
local c_ethbirch = minetest.get_content_id("ethereal.birchtree")
local c_ethbirch = minetest.get_content_id("ethereal:birchtree")
local c_apple = minetest.get_content_id("default:apple")
local c_leaves = minetest.get_content_id("default:leaves")
local c_air = minetest.get_content_id("air")
@ -252,7 +252,7 @@ local function dissolve(pos_dissolve, pos_liquid)
local name = node.name
local nodedef = minetest.registered_nodes[name]
if nodedef and nodedef.liquidtype ~= "none" then
minetest.remove_node(pos_dissolve)
minetest.set_node(pos_dissolve, {name="air"})
return true
end
end