fixed entity being rendered too high for cluster tnt / dynamite & implemented method to get tnt's fuse that was given at init time

This commit is contained in:
Jenny committed 2025-01-25 21:42:15 +01:00
1 parent 94133e167a
commit 3587ccbc8a
5 files changed
+17 -6

No files matched your search

@@ -33,6 +33,7 @@ public class baseArrow extends AbstractArrow {
private Potion potion = Potions.EMPTY;
private final Set<MobEffectInstance> effects = Sets.newHashSet();
private boolean fixedColor;
private int tick = 0;
public baseArrow(EntityType<? extends baseArrow> pEntityType, Level pLevel) {
super(pEntityType, pLevel);
@@ -105,13 +106,13 @@ public class baseArrow extends AbstractArrow {
} else {
this.makeParticle(2);
}
this.tick++;
} else if (this.inGround && this.inGroundTime != 0 && !this.effects.isEmpty() && this.inGroundTime >= 600) {
this.level().broadcastEntityEvent(this, (byte)0);
this.potion = Potions.EMPTY;
this.effects.clear();
this.entityData.set(ID_EFFECT_COLOR, -1);
}
}
private void makeParticle(int pParticleAmount) {
@@ -232,4 +233,8 @@ public class baseArrow extends AbstractArrow {
public void spawnParticles() {
}
public int getTick() {
return this.tick;
}
}