mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Piglins no longer aggro for enchanted gold armour
This commit is contained in:
parent
8a2c90406f
commit
3aed71fb85
@ -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 New Issue
Block a user