fix ims bomb not showing up
@@ -3,7 +3,6 @@ package net.geforcemods.securitycraft.entity;
import net.geforcemods.securitycraft.ConfigHandler.CommonConfig;
import net.geforcemods.securitycraft.SCContent;
import net.geforcemods.securitycraft.util.BlockUtils;
-import net.geforcemods.securitycraft.util.EntityUtils;
import net.geforcemods.securitycraft.util.PlayerUtils;
import net.geforcemods.securitycraft.util.WorldUtils;
import net.minecraft.entity.EntityType;
@@ -38,7 +37,7 @@ public class IMSBombEntity extends AbstractFireballEntity {
}
public IMSBombEntity(World world, LivingEntity targetEntity, double x, double y, double z, double targetX, double targetY, double targetZ, int height){
- super(SCContent.eTypeImsBomb, targetEntity, targetX, targetY, targetZ, world);
+ super(SCContent.eTypeImsBomb, x, y, z, targetX, targetY, targetZ, world);
targetMob = targetEntity;
launchHeight = height;
}
@@ -51,7 +50,7 @@ public class IMSBombEntity extends AbstractFireballEntity {
}
if(ticksFlying < launchHeight && launching){
- EntityUtils.moveY(this, 0.35F);
+ setMotion(getMotion().x, 0.35F, getMotion().z);
ticksFlying++;
move(MoverType.SELF, getMotion());
}else if(ticksFlying >= launchHeight && launching)
@@ -80,8 +79,6 @@ public class IMSBombEntity extends AbstractFireballEntity {
WorldUtils.addScheduledTask(world, () -> world.addEntity(imsBomb));
remove();
}
- else
- remove();
}
@Override
