mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-12-29 16:00:16 +01:00
Fix being unable to place snow.
This commit is contained in:
parent
1710db6daa
commit
31dba55c81
@ -200,13 +200,14 @@ minetest.override_item("default:snow", {
|
|||||||
else
|
else
|
||||||
minetest.set_node_level(place_to, level+7)
|
minetest.set_node_level(place_to, level+7)
|
||||||
end
|
end
|
||||||
itemstack:take_item()
|
|
||||||
|
|
||||||
if node.name ~= "default:snow" then
|
if node.name ~= "default:snow" then
|
||||||
local itemstack, placed = minetest.item_place_node(itemstack, placer, pointed_thing)
|
local itemstack, placed = minetest.item_place_node(itemstack, placer, pointed_thing)
|
||||||
return itemstack, placed
|
return itemstack, placed
|
||||||
end
|
end
|
||||||
|
|
||||||
|
itemstack:take_item()
|
||||||
|
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
on_use = snow_shoot_snowball -- This line is from the 'Snow' mod,
|
on_use = snow_shoot_snowball -- This line is from the 'Snow' mod,
|
||||||
|
Loading…
Reference in New Issue
Block a user