Fix ice not melting properly by non-Sun light
This commit is contained in:
parent
23630bbac0
commit
6e9d712c5e
2 changed files with 19 additions and 8 deletions
|
@ -781,13 +781,7 @@ minetest.register_node("mcl_core:ice", {
|
|||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
||||
node_dig_prediction = "mcl_core:water_source",
|
||||
after_dig_node = function(pos, oldnode)
|
||||
-- Create a water source if ice is destroyed and there was something below it
|
||||
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||
local belownode = minetest.get_node(below)
|
||||
local dim = mcl_worlds.pos_to_dimension(below)
|
||||
if dim ~= "nether" and belownode.name ~= "air" and belownode.name ~= "ignore" and belownode.name ~= "mcl_core:void" then
|
||||
minetest.set_node(pos, {name="mcl_core:water_source"})
|
||||
end
|
||||
mcl_core.melt_ice(pos)
|
||||
end,
|
||||
_mcl_blast_resistance = 2.5,
|
||||
_mcl_hardness = 0.5,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue