Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Nullchecking addressing issue 23 #33

Draft
wants to merge 6 commits into
base: 1.19
Choose a base branch
from

Conversation

AntonBoch1244
Copy link
Contributor

Issue: #23

Adding process and handlers null checks for address issues.

In `process` method no null checks even for `player` variable.

Should address maksim789456#23

TODO: Add logging.
Cause patching of  this method can lead no sounds issue on client side.
Errata. forEach not a for loop.
@@ -86,6 +81,8 @@ private void blockUpdates(Collection<BlockPos> blockPos) {

@Override
protected void gatherDiagnostics(Collection<String> left, Collection<String> right, Collection<TimerEMA> timers) {
if (this.blockEffects == null || left == null) return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not included to commit message:

left must have value
this.blockEffects must have value

@AntonBoch1244 AntonBoch1244 marked this pull request as draft June 14, 2023 05:18
maksim789456 pushed a commit that referenced this pull request Dec 17, 2023
* Remove BiomeAccessor

* More cleanup

* Fixup enum related codecs

* Some doc cleanup

* Fix derp

---------

Co-authored-by: OreCruncher <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant