Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +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()));
|
||||
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();
|
||||
motionPacket.setRuntimeEntityId(session.getPlayerEntity().getGeyserId());
|
||||
motionPacket.setMotion(Vector3f.from(packet.getPushX(), packet.getPushY(), packet.getPushZ()));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren