Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 08:30:12 +01:00
Only one of the values here needs to be greater than 0
Dieser Commit ist enthalten in:
Ursprung
44f521ed04
Commit
80a36344eb
@ -66,7 +66,7 @@ public class JavaExplosionTranslator extends PacketTranslator<ServerExplosionPac
|
|||||||
levelSoundEventPacket.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
|
levelSoundEventPacket.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
|
||||||
session.sendUpstreamPacket(levelSoundEventPacket);
|
session.sendUpstreamPacket(levelSoundEventPacket);
|
||||||
|
|
||||||
if (packet.getPushX() > 0f && packet.getPushY() > 0f && packet.getPushZ() > 0f) {
|
if (packet.getPushX() > 0f || packet.getPushY() > 0f || packet.getPushZ() > 0f) {
|
||||||
SetEntityMotionPacket motionPacket = new SetEntityMotionPacket();
|
SetEntityMotionPacket motionPacket = new SetEntityMotionPacket();
|
||||||
motionPacket.setRuntimeEntityId(session.getPlayerEntity().getGeyserId());
|
motionPacket.setRuntimeEntityId(session.getPlayerEntity().getGeyserId());
|
||||||
motionPacket.setMotion(Vector3f.from(packet.getPushX(), packet.getPushY(), packet.getPushZ()));
|
motionPacket.setMotion(Vector3f.from(packet.getPushX(), packet.getPushY(), packet.getPushZ()));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren