mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-26 06:13:45 +01:00
Correction to example code
This commit is contained in:
parent
5508a26dbf
commit
e9a2c57826
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user