Skip to content

Commit

Permalink
Merge pull request #18 from yangx14488/main
Browse files Browse the repository at this point in the history
Update ArtemisMissileEntity.java
  • Loading branch information
LocusAzzurro committed Jan 22, 2022
2 parents f55c7df + bc54723 commit 8a6eec9
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 8a6eec9

Please sign in to comment.