Skip to content

Commit

Permalink
fix(DeathMessageBuilder): check for null potion effect (#1264)
Browse files Browse the repository at this point in the history
Signed-off-by: TTtie <[email protected]>
  • Loading branch information
TTtie authored Oct 30, 2023
1 parent f2b8464 commit 89eb67e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ boolean ranged(RangedInfo rangedInfo, @Nullable Location distanceReference) {
}

boolean potion(PotionInfo potionInfo) {
if (option("potion")) {
if (potionInfo.getPotionEffect() != null && option("potion")) {
weapon = potionInfo.getName();
return true;
}
Expand Down

0 comments on commit 89eb67e

Please sign in to comment.