Correction to example code

This commit is contained in:
stujones11 2017-04-08 22:32:46 +01:00
parent 5508a26dbf
commit e9a2c57826
1 changed files with 1 additions and 1 deletions

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},
reciprocate_damage = true,
on_destroy = function(player, item_name)
local pos = player:get_pos()
local pos = player:getpos()
if pos then
minetest.sound_play({
name = "mod_name_break_sound",