1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-09-27 23:30:18 +02:00

Play sounds when planting crops

This commit is contained in:
TenPlus1 2016-04-01 11:05:18 +01:00
parent 2a62120208
commit e974390844

View File

@ -24,6 +24,8 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname)
-- add the node and remove 1 item from the itemstack -- add the node and remove 1 item from the itemstack
minetest.set_node(pt.above, {name = plantname}) minetest.set_node(pt.above, {name = plantname})
minetest.sound_play("default_place_node", {gain = 1.0})
if not minetest.setting_getbool("creative_mode") then if not minetest.setting_getbool("creative_mode") then
itemstack:take_item() itemstack:take_item()