update fork (again) #8

Merged
chmodsayshello merged 2270 commits from VoxeLibre/VoxeLibre:master into master 2023-01-06 20:13:54 +01:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 88de3656b1 - Show all commits

View File

@ -119,8 +119,7 @@ local piglin = {
on_pick_up = function(self, itementity)
local item = itementity.itemstring:split(" ")[1]
local it = ItemStack(itementity.itemstring)
--return true --do not pick up
if item == "mcl_core:gold_ingot" and self.state ~= "attack" and self.gold_items < 3 then
if item == "mcl_core:gold_ingot" and self.state ~= "attack" and self.gold_items and self.gold_items < 3 then
it:take_item(1)
self.state = "stand"
self.object:set_animation({x=0,y=79})