1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-27 11:10:39 +01:00

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},
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",