Skip to content

Commit

Permalink
Fix Spawn position not using offset. (GeyserMC#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
bundabrg authored Jul 25, 2020
1 parent 5b1116b commit fffac8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void translate(ServerPlayerPositionRotationPacket packet, GeyserSession s

RespawnPacket respawnPacket = new RespawnPacket();
respawnPacket.setRuntimeEntityId(entity.getGeyserId());
respawnPacket.setPosition(pos);
respawnPacket.setPosition(entity.getPosition());
respawnPacket.setState(RespawnPacket.State.SERVER_READY);
session.sendUpstreamPacket(respawnPacket);

Expand All @@ -79,7 +79,7 @@ public void translate(ServerPlayerPositionRotationPacket packet, GeyserSession s

MovePlayerPacket movePlayerPacket = new MovePlayerPacket();
movePlayerPacket.setRuntimeEntityId(entity.getGeyserId());
movePlayerPacket.setPosition(pos);
movePlayerPacket.setPosition(entity.getPosition());
movePlayerPacket.setRotation(Vector3f.from(packet.getPitch(), packet.getYaw(), 0));
movePlayerPacket.setMode(MovePlayerPacket.Mode.RESPAWN); //TODO: PROBABLY RIGHT BUT STILL CHECK

Expand Down

0 comments on commit fffac8a

Please sign in to comment.