Skip to content

Commit

Permalink
player/player.go: Fixed HandleChangeWorld never being called.
Browse files Browse the repository at this point in the history
Resolves #980.
  • Loading branch information
Sandertv committed Jan 2, 2025
1 parent cc7e4ee commit f2b2ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -2363,8 +2363,8 @@ func (p *Player) Tick(tx *world.Tx, current int64) {

if p.prevWorld != tx.World() && p.prevWorld != nil {
p.Handler().HandleChangeWorld(p, p.prevWorld, tx.World())
p.prevWorld = tx.World()
}
p.prevWorld = tx.World()

if p.session() == session.Nop && !p.Immobile() {
m := p.mc.TickMovement(p, p.Position(), p.Velocity(), p.Rotation(), p.tx)
Expand Down

0 comments on commit f2b2ef9

Please sign in to comment.