From f0681adc12de894dace8db54201b0cc2cabfc722 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 28 Sep 2020 21:31:06 +0200 Subject: [PATCH] Fixed endermen holding nothing --- .../unicopia/entity/behaviour/EndermanBehaviour.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EndermanBehaviour.java b/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EndermanBehaviour.java index 22e57c67..910f9c6d 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EndermanBehaviour.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EndermanBehaviour.java @@ -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 { if (stack.getItem() instanceof BlockItem) { entity.setCarriedBlock(((BlockItem)stack.getItem()).getBlock().getDefaultState()); } else { - entity.setCarriedBlock(Blocks.AIR.getDefaultState()); + entity.setCarriedBlock(null); } - } }