Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix false positive in onPlayerTeleport event when using spawnPlayer #3990

Merged
merged 1 commit into from
Jan 30, 2025

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
@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