Skip to content

Conversation

@imfelipedev
Copy link
Contributor

This PR fixes a false positive in the onPlayerTeleport event that occurred when using the spawnPlayer function. The issue happened because spawnPlayer internally teleports the player to the position (0, 0, 0) before setting the correct position specified in the arguments. With this fix, the event is no longer triggered incorrectly during this process.

@botder botder added the bugfix Solution to a bug of any kind label Jan 30, 2025
@botder botder merged commit 1e7893c into multitheftauto:master Jan 30, 2025
6 checks passed
@botder botder added this to the 1.6.1 milestone Jan 30, 2025
MTABot pushed a commit that referenced this pull request Jan 30, 2025
1e7893c Fix false positive in `onPlayerTeleport` event when using `spawnPlayer` (PR #3990)
5dceaf3 Fix jetpack crash (PR #3989)
@imfelipedev imfelipedev deleted the onPlayerTeleport branch February 4, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants