mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed endermen holding nothing
This commit is contained in:
parent
06f53ce7c2
commit
f0681adc12
1 changed files with 1 additions and 3 deletions
|
@ -3,7 +3,6 @@ package com.minelittlepony.unicopia.entity.behaviour;
|
||||||
import com.minelittlepony.unicopia.ability.magic.Caster;
|
import com.minelittlepony.unicopia.ability.magic.Caster;
|
||||||
import com.minelittlepony.unicopia.ability.magic.Spell;
|
import com.minelittlepony.unicopia.ability.magic.Spell;
|
||||||
|
|
||||||
import net.minecraft.block.Blocks;
|
|
||||||
import net.minecraft.entity.mob.EndermanEntity;
|
import net.minecraft.entity.mob.EndermanEntity;
|
||||||
import net.minecraft.item.BlockItem;
|
import net.minecraft.item.BlockItem;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
@ -22,8 +21,7 @@ public class EndermanBehaviour extends EntityBehaviour<EndermanEntity> {
|
||||||
if (stack.getItem() instanceof BlockItem) {
|
if (stack.getItem() instanceof BlockItem) {
|
||||||
entity.setCarriedBlock(((BlockItem)stack.getItem()).getBlock().getDefaultState());
|
entity.setCarriedBlock(((BlockItem)stack.getItem()).getBlock().getDefaultState());
|
||||||
} else {
|
} else {
|
||||||
entity.setCarriedBlock(Blocks.AIR.getDefaultState());
|
entity.setCarriedBlock(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue