Skip to content

Commit

Permalink
remove unused constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
afamiliarquiet committed Jul 4, 2024
1 parent 1c3924a commit 76bb499
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ protected BreathProjectileEntity(EntityType<? extends ThrownEntity> entityType,
this.setScale(1f);
}

@SuppressWarnings("unused") // nyeh. it's maybe used by /summon or something... it stays.
protected BreathProjectileEntity(EntityType<? extends ThrownEntity> type, double x, double y, double z, World world) {
super(type, x, y, z, world);
this.statusEffects = new ArrayList<>();
this.setScale(1f);
}

public BreathProjectileEntity(LivingEntity owner, World world, double scale) {
super(MawEntities.BREATH_PROJECTILE_TYPE, owner, world);
this.statusEffects = new ArrayList<>(owner.getStatusEffects()
Expand Down Expand Up @@ -169,6 +162,7 @@ protected void onEntityHit(EntityHitResult entityHitResult) {

// dunno if these checks for fire/splash immunity are necessary but..
// it's good to be respectful to the entity's wishes anyway
// would need to create my own damage type to properly add the attacker to the target's lastDamageSource
if (!entity.isFireImmune()) {
entity.setOnFireForTicks(beNice ? 13 : 20);
}
Expand Down

0 comments on commit 76bb499

Please sign in to comment.