Skip to content

PoisonUtil fixes part 2#91

Open
ekulxam wants to merge 5 commits intodoctor4t:mainfrom
ekulxam:poison-fix
Open

PoisonUtil fixes part 2#91
ekulxam wants to merge 5 commits intodoctor4t:mainfrom
ekulxam:poison-fix

Conversation

@ekulxam
Copy link
Contributor

@ekulxam ekulxam commented Nov 26, 2025

Originally from #22

Extracts duplicate logic in PlayerEntityMixin and PoisonUtil to PoisonUtil.updatePoisonTicks.

Obtains UUID of poisoner earlier in bedPoison. Previously, the UUID was set to null before being obtained, resulting in the UUID always being null.

Add NotNull and Nullable annotations when acceptable.

@ekulxam
Copy link
Contributor Author

ekulxam commented Nov 26, 2025

Also fixed potential crash that could have occurred when attempting to read an invalid UUID.

@ekulxam
Copy link
Contributor Author

ekulxam commented Nov 27, 2025

Unfortunately, that doesn't actually fix the issue, as a new PacketCodec is derived from the codec, so I'll need to fix that later.

This reverts commit 91f83e5.
@ekulxam
Copy link
Contributor Author

ekulxam commented Nov 27, 2025

I've decided that this PR is not going to fix that issue because my WIP solution is likely to break a lot of things.

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.

1 participant