Added projectile entities to the list of things that can fly

This commit is contained in:
Sollace 2019-02-12 16:36:01 +02:00
parent 4b543b45ac
commit 17a5006db1

View file

@ -14,6 +14,7 @@ import com.minelittlepony.unicopia.player.IPlayer;
import com.minelittlepony.unicopia.player.IPlayerHeightPredicate;
import com.minelittlepony.unicopia.player.PlayerSpeciesList;
import com.minelittlepony.unicopia.render.DisguiseRenderer;
import com.minelittlepony.util.ProjectileUtil;
import com.mojang.authlib.GameProfile;
import net.minecraft.entity.Entity;
@ -28,6 +29,7 @@ import net.minecraft.entity.monster.EntityShulker;
import net.minecraft.entity.passive.EntityAmbientCreature;
import net.minecraft.entity.passive.EntityTameable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityShulkerBullet;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@ -410,7 +412,9 @@ public class SpellDisguise extends AbstractSpell implements IFlyingPredicate, IP
if (entity instanceof EntityFlying
|| entity instanceof net.minecraft.entity.passive.EntityFlying
|| entity instanceof EntityDragon
|| entity instanceof EntityAmbientCreature) {
|| entity instanceof EntityAmbientCreature
|| entity instanceof EntityShulkerBullet
|| ProjectileUtil.isProjectile(entity)) {
return true;
}