mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Piglins no longer aggro for enchanted gold armour
This commit is contained in:
parent
8a2c90406f
commit
3aed71fb85
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,10 @@ function mobs_mc.player_wears_gold(player)
|
||||||
for i=1, 6 do
|
for i=1, 6 do
|
||||||
local stack = player:get_inventory():get_stack("armor", i)
|
local stack = player:get_inventory():get_stack("armor", i)
|
||||||
local item = stack:get_name()
|
local item = stack:get_name()
|
||||||
if item == "mcl_armor:chestplate_gold" or item == "mcl_armor:leggings_gold" or item == "mcl_armor:helmet_gold" or item == "mcl_armor:boots_gold" then
|
if string.find(item, "mcl_armor:chestplate_gold")
|
||||||
|
or string.find(item, "mcl_armor:leggings_gold")
|
||||||
|
or string.find(item, "mcl_armor:helmet_gold")
|
||||||
|
or string.find(item, "mcl_armor:boots_gold") then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue