partly fix bullet not behaving correctly
@@ -3,7 +3,7 @@ package net.geforcemods.securitycraft.entity;
import net.geforcemods.securitycraft.SCContent;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.LivingEntity;
-import net.minecraft.entity.projectile.ArrowEntity;
+import net.minecraft.entity.projectile.AbstractArrowEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.network.IPacket;
import net.minecraft.util.DamageSource;
@@ -14,7 +14,7 @@ import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.world.World;
import net.minecraftforge.fml.network.NetworkHooks;
-public class EntityBullet extends ArrowEntity
+public class EntityBullet extends AbstractArrowEntity
{
public EntityBullet(EntityType<EntityBullet> type, World world)
{
@@ -23,9 +23,7 @@ public class EntityBullet extends ArrowEntity
public EntityBullet(World world, LivingEntity shooter)
{
- super(SCContent.eTypeBullet, world);
-
- setShooter(shooter);
+ super(SCContent.eTypeBullet, shooter, world);
}
@Override
