Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-262422

Lightning bolts during thunderstorms can strike players in spectator game mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4, 1.20 Pre-release 5
    • None
    • Community Consensus
    • Entities, Player
    • Normal
    • Platform

      During thunderstorm, random lightning strikes can hit players in spectator game mode.

      In ServerLevel.java, there are findLightningTargetAround(getBlockRandomPosition(...)). That method calls getEntitiesOfClass(...) that checks for isAlive of nearby entities, but not for game mode of it in case of player (so creative players are also affected by this, even though they can't take damage).

            Unassigned Unassigned
            molore Zhenya
            Votes:
            7 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: