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

Guardian beam creates air bubbles on land

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 15w49b, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11, Minecraft 1.12.2, Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.15.2, 1.16.1, 20w46a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a, 21w15a, 21w17a, 1.17 Release Candidate 1, 1.17, 1.17.1, 21w40a, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.2, 1.20.1, 1.20.3 Release Candidate 1, 1.20.4
    • Confirmed
    • Rendering
    • Low
    • Gameplay

      The bug

      When a guardian targets a player or squid on land the beam shows air bubbles.

      How to reproduce

      1. Summon a guardian (riding an armor stand) on land using the following command:
        /summon minecraft:armor_stand ~ ~ ~ {Passengers:[{id:"minecraft:guardian"}]}
      2. Switch to survival mode /gamemode survival
        When the guardian attacks, air bubble particles appear in its beam

      Expected behavior

      Because the guardian is already on land, the particles from its beam should not include air bubbles.

      The reason

      The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.

      The affected method is net.minecraft.entity.monster.EntityGuardian.onLivingUpdate(). This method first tests if the Guardian is in water and the beam is active and then creates air bubbles. However after this it tests if the guardian targets an entity and then creates air bubbles without testing if the Guardian is in water.

      Note: I am not sure if it is intended that Guardians that target an entity in water create air bubbles twice.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            21 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: