Skip to content

Commit

Permalink
Update ArtemisMissileEntity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yangx14488 committed Jan 22, 2022
1 parent f55c7df commit bc54723
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import net.minecraftforge.fml.network.NetworkHooks;
import org.mineplugin.locusazzurro.icaruswings.registry.EntityTypeRegistry;
import org.mineplugin.locusazzurro.icaruswings.registry.ParticleRegistry;
import net.minecraft.block.Blocks;
import net.minecraft.particles.BlockParticleData;

import javax.annotation.Nullable;
import java.util.UUID;
Expand All @@ -37,6 +39,9 @@ public class ArtemisMissileEntity extends DamagingProjectileEntity {
private int fuel;
private double homingSpeed = 1.1;
private static final IParticleData PARTICLE = ParticleRegistry.plasmaTrail.get();

// 空白粒子
public static final IParticleData PARTICLE_EMPTY = new BlockParticleData( ParticleTypes.BLOCK, Blocks.AIR.defaultBlockState( ) ) ;

public ArtemisMissileEntity(EntityType<? extends ArtemisMissileEntity> type, World world) {
super(type, world);
Expand Down Expand Up @@ -207,7 +212,7 @@ protected boolean shouldBurn(){
}

protected IParticleData getTrailParticle() {
return ParticleRegistry.nullity.get();
return PARTICLE_EMPTY ;
}

@Override
Expand Down

0 comments on commit bc54723

Please sign in to comment.