Correction to example code

This commit is contained in:
stujones11 2017-04-08 22:32:46 +01:00
parent 5508a26dbf
commit e9a2c57826

View File

@ -112,7 +112,7 @@ armor:register_armor("mod_name:speed_boots", {
damage_groups = {cracky=3, snappy=3, choppy=3, crumbly=3, level=1}, damage_groups = {cracky=3, snappy=3, choppy=3, crumbly=3, level=1},
reciprocate_damage = true, reciprocate_damage = true,
on_destroy = function(player, item_name) on_destroy = function(player, item_name)
local pos = player:get_pos() local pos = player:getpos()
if pos then if pos then
minetest.sound_play({ minetest.sound_play({
name = "mod_name_break_sound", name = "mod_name_break_sound",