Fixed endermen holding nothing

This commit is contained in:
Sollace 2020-09-28 21:31:06 +02:00
parent 06f53ce7c2
commit f0681adc12

View file

@ -3,7 +3,6 @@ package com.minelittlepony.unicopia.entity.behaviour;
import com.minelittlepony.unicopia.ability.magic.Caster;
import com.minelittlepony.unicopia.ability.magic.Spell;
import net.minecraft.block.Blocks;
import net.minecraft.entity.mob.EndermanEntity;
import net.minecraft.item.BlockItem;
import net.minecraft.item.ItemStack;
@ -22,8 +21,7 @@ public class EndermanBehaviour extends EntityBehaviour<EndermanEntity> {
if (stack.getItem() instanceof BlockItem) {
entity.setCarriedBlock(((BlockItem)stack.getItem()).getBlock().getDefaultState());
} else {
entity.setCarriedBlock(Blocks.AIR.getDefaultState());
entity.setCarriedBlock(null);
}
}
}