fix particles

This commit is contained in:
Sen 2025-07-09 16:46:18 +02:00
parent 2e7a3dd09a
commit ebf31c2078
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
31 changed files with 658 additions and 1156 deletions

View file

@ -2175,7 +2175,7 @@ public abstract class EntityNPC extends EntityLiving
if(this.connection != null)
this.connection.onCriticalHit(entityHit);
else if(this.client != null)
this.client.emitParticleAtEntity(entityHit, ParticleType.CRIT);
this.client.spawnCritParticles(entityHit);
}
public void onEnchantmentCritical(Entity entityHit)
@ -2183,8 +2183,8 @@ public abstract class EntityNPC extends EntityLiving
if(this.connection != null)
this.connection.onEnchantmentCritical(entityHit);
else if(this.client != null) {
this.client.emitParticleAtEntity(entityHit, ParticleType.CRIT);
this.client.emitParticleAtEntity(entityHit, ParticleType.CRIT);
this.client.spawnCritParticles(entityHit);
this.client.spawnCritParticles(entityHit);
}
}

View file

@ -1,7 +1,6 @@
package common.network;
import common.entity.Entity;
import common.model.ParticleType;
import common.packet.SPacketEntity;
import common.packet.SPacketEntityTeleport;
import common.packet.SPacketEntityHeadLook;
@ -70,7 +69,7 @@ public interface IClientPlayer extends NetHandler {
void playSound(Sound sound);
boolean isRenderViewEntity(Entity entity);
void updatePlayerMoveState();
void emitParticleAtEntity(Entity entity, ParticleType particleTypes);
void spawnCritParticles(Entity entity);
boolean isJumping();
boolean isSprinting();
boolean isSneaking();