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

Don't rebuild material definitions each interaction #2143

Merged
merged 1 commit into from Aug 24, 2023

Conversation

Jikoo
Copy link
Collaborator

@Jikoo Jikoo commented Aug 23, 2023

I've noticed this in the past as a weird thing, but it hasn't bothered me enough to fix it until in a recent issue I noticed GP spending more time handling PlayerInteractEvents than pistons purely because of this.

Material#isLegacy call is also not necessary - Spigot instruments all Material#values calls depending on whether modern or legacy materials are required.

@RoboMWM RoboMWM merged commit ef2ec50 into GriefPrevention:master Aug 24, 2023
1 check passed
@Jikoo Jikoo deleted the dev/cache-mat-definitions branch August 24, 2023 20:21
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.

None yet

2 participants