mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-11-16 14:50:18 +01:00
Keep dirt_with_snow blocks after snow destruct.
This commit is contained in:
parent
a4470eec2a
commit
f37ba7a615
|
@ -141,11 +141,11 @@ minetest.override_item("default:snow", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
--Remove dirt_with_snow and replace with dirt_with_grass.
|
--Remove dirt_with_snow and replace with dirt_with_grass.
|
||||||
after_destruct = function(pos)
|
--[[after_destruct = function(pos)
|
||||||
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "default:dirt_with_snow" then
|
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "default:dirt_with_snow" then
|
||||||
minetest.set_node({x=pos.x, y=pos.y-1, z=pos.z}, {name="default:dirt_with_grass"})
|
minetest.set_node({x=pos.x, y=pos.y-1, z=pos.z}, {name="default:dirt_with_grass"})
|
||||||
end
|
end
|
||||||
end,
|
end,]]
|
||||||
--Handle node drops due to node level.
|
--Handle node drops due to node level.
|
||||||
on_dig = function(pos, node, digger)
|
on_dig = function(pos, node, digger)
|
||||||
local level = minetest.get_node_level(pos)
|
local level = minetest.get_node_level(pos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user