mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-02-22 04:33:35 +01:00
Update comments
This commit is contained in:
parent
881352daaf
commit
3b943f214c
1 changed files with 4 additions and 4 deletions
|
@ -238,9 +238,9 @@ public class JavaEntityEventTranslator extends PacketTranslator<ClientboundEntit
|
||||||
if (entity instanceof LivingEntity) {
|
if (entity instanceof LivingEntity) {
|
||||||
// Not ideal, but...
|
// Not ideal, but...
|
||||||
// LevelEventType.PARTICLE_DEATH_SMOKE doesn't work (as of 1.18.2 Bedrock)
|
// LevelEventType.PARTICLE_DEATH_SMOKE doesn't work (as of 1.18.2 Bedrock)
|
||||||
// EntityEventType.DEATH_SMOKE_CLOUD also plays the entity noise
|
// EntityEventType.DEATH_SMOKE_CLOUD also plays the entity death noise
|
||||||
// I wasn't able to figure out how the vanilla Bedrock server does it,
|
// Bedrock sends the particles through EntityEventType.DEATH, but Java despawns the entity
|
||||||
// but it appears to use neither of these.
|
// prematurely so they don't show up.
|
||||||
Vector3f position = entity.getPosition();
|
Vector3f position = entity.getPosition();
|
||||||
float baseX = position.getX();
|
float baseX = position.getX();
|
||||||
float baseY = position.getY();
|
float baseY = position.getY();
|
||||||
|
@ -256,7 +256,7 @@ public class JavaEntityEventTranslator extends PacketTranslator<ClientboundEntit
|
||||||
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
||||||
levelEventPacket.setPosition(Vector3f.from(x, y, z));
|
levelEventPacket.setPosition(Vector3f.from(x, y, z));
|
||||||
levelEventPacket.setType(LevelEventType.PARTICLE_EXPLODE);
|
levelEventPacket.setType(LevelEventType.PARTICLE_EXPLODE);
|
||||||
//session.sendUpstreamPacket(levelEventPacket);
|
session.sendUpstreamPacket(levelEventPacket);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue