Skip to content

Commit

Permalink
Only one of the values here needs to be greater than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Aug 18, 2020
1 parent 44f521e commit 80a3634
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void translate(ServerExplosionPacket packet, GeyserSession session) {
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()));
Expand Down

0 comments on commit 80a3634

Please sign in to comment.