Added some code to prevent the potential of arrows being used with blue aerclouds for lag machine purposes.
This commit is contained in:
parent
8b2f0affe4
commit
9703daf541
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue