mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Remove useless line. Make horse drop all items when being virused, closes #189
This commit is contained in:
2 files changed
+1
-1
No files matched your search
@@ -75,7 +75,6 @@ import vazkii.botania.common.entity.EntityPinkWither;
|
||||
import vazkii.botania.common.entity.EntitySignalFlare;
|
||||
import vazkii.botania.common.entity.EntitySpark;
|
||||
import vazkii.botania.common.entity.ModEntities;
|
||||
//import vazkii.botania.common.integration.buildcraft.StatementAPIPlugin; todo 1.8
|
||||
//import vazkii.botania.common.block.ModBanners;
|
||||
import vazkii.botania.common.integration.buildcraft.StatementAPIPlugin;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
@@ -51,6 +51,7 @@ public class ItemVirus extends ItemMod {
|
||||
if(par3EntityLivingBase instanceof EntityHorse) {
|
||||
EntityHorse horse = (EntityHorse) par3EntityLivingBase;
|
||||
if(horse.getType() != HorseArmorType.ZOMBIE && horse.getType() != HorseArmorType.SKELETON && horse.isTame()) {
|
||||
horse.dropChestItems();
|
||||
horse.setType(par1ItemStack.getItemDamage() == 0 ? HorseArmorType.ZOMBIE : HorseArmorType.SKELETON);
|
||||
AbstractAttributeMap attributes = horse.getAttributeMap();
|
||||
IAttributeInstance movementSpeed = attributes.getAttributeInstance(SharedMonsterAttributes.MOVEMENT_SPEED);
|
||||
|
||||
Reference in new issue
Block a user