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 weird staff interaction #332

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

imreallybadatnames
Copy link
Contributor

The bug in question happens because LivingEntity.usageTick is executed on the server and ALL clients who have said entity loaded.
In order to fix this issue, a check must be implemented to ensure that theclientUsageTick method only executes on the player that is using the staff.
In my testing, a simple object identity check worked flawlessly for both the hosting player and a connected client instance.

@imreallybadatnames
Copy link
Contributor Author

Didn't realize issue # don't work in titles.
This PR fixes issue #310

@imreallybadatnames imreallybadatnames changed the title Fix staff weirdness [#310] Fix weird staff interaction Jan 28, 2024
Copy link
Owner

@DaFuqs DaFuqs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, simple, spot-on.

@DaFuqs DaFuqs merged commit 2ea81ee into DaFuqs:1.20.1-main Jan 29, 2024
2 checks passed
@imreallybadatnames imreallybadatnames deleted the stafffix branch January 29, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants