mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-12-28 07:30:17 +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
|
||||
minetest.set_node_level(place_to, level+7)
|
||||
end
|
||||
itemstack:take_item()
|
||||
|
||||
if node.name ~= "default:snow" then
|
||||
local itemstack, placed = minetest.item_place_node(itemstack, placer, pointed_thing)
|
||||
return itemstack, placed
|
||||
end
|
||||
|
||||
itemstack:take_item()
|
||||
|
||||
return itemstack
|
||||
end,
|
||||
on_use = snow_shoot_snowball -- This line is from the 'Snow' mod,
|
||||
|
Loading…
Reference in New Issue
Block a user