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

Update PuffBug.java removeWhenFarAway to avoid access to chunk data during spawn and despawn process. #264

Open
wants to merge 1 commit into
base: 1.19.x
Choose a base branch
from

Conversation

MarkusBordihn
Copy link

"Replaced getHive() with getHivePose() in removeWhenFarAway to prevent accessing chunk data during the spawn and despawn process.

This change will also slightly improve performance since hivePose is already checked regularly during tick events.
See: PuffBug.java#L217

… during spawn and despawn process.

"Replaced `getHive()` with `getHivePose()` in `removeWhenFarAway` to prevent accessing chunk data during the spawn and despawn process.

This change will also slightly improve performance since `hivePose` is already checked regularly during tick events.  
See: [PuffBug.java#L217](https://github.com/team-abnormals/endergetic/blob/f49f630f5ecd3fb4ccd7a43de9347373b2a5087f/src/main/java/com/teamabnormals/endergetic/common/entity/puffbug/PuffBug.java#L217)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant