mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 17:46:28 -04:00
Minor fix
This commit is contained in:
parent
a7158d03c6
commit
fb36bfa821
1 changed files with 2 additions and 0 deletions
|
@ -641,6 +641,8 @@ minetest.register_node("default:snow", {
|
|||
|
||||
-- Manage snow levels.
|
||||
on_place = function(itemstack, player, pt, digger)
|
||||
minetest.sound_play("default_place_node", {pos = pos})
|
||||
|
||||
local oldnode_under = minetest.get_node_or_nil(pt.under)
|
||||
if not oldnode_under then
|
||||
return itemstack
|
||||
|
|
Loading…
Add table
Reference in a new issue