From 9703daf541995f5b1aaa9d49ca4bd7102edf235a Mon Sep 17 00:00:00 2001 From: bconlon Date: Mon, 28 Dec 2020 17:58:08 -0800 Subject: [PATCH] Added some code to prevent the potential of arrows being used with blue aerclouds for lag machine purposes. --- .../the_aether/blocks/natural/BlockAercloud.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/gildedgames/the_aether/blocks/natural/BlockAercloud.java b/src/main/java/com/gildedgames/the_aether/blocks/natural/BlockAercloud.java index b1c7163..79a8a0e 100644 --- a/src/main/java/com/gildedgames/the_aether/blocks/natural/BlockAercloud.java +++ b/src/main/java/com/gildedgames/the_aether/blocks/natural/BlockAercloud.java @@ -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; }