Added some code to prevent the potential of arrows being used with blue aerclouds for lag machine purposes.

This commit is contained in:
bconlon 2020-12-28 17:58:08 -08:00
parent 8b2f0affe4
commit 9703daf541

View file

@ -10,6 +10,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.AxisAlignedBB;
@ -58,6 +59,14 @@ public class BlockAercloud extends Block implements IColoredBlock, INamedBlock {
entity.motionY = 2.0D;
} else {
if (entity instanceof EntityArrow)
{
if (entity.ticksExisted >= 1200)
{
entity.setDead();
}
}
entity.motionY = 2.0D;
}