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

NeutralMob.playerDied(Player) does not return if forgiveDeadPlayers = false

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.16 Pre-release 2
    • 1.16 Pre-release 3
    • None
    • Plausible
    • Mob behaviour, Player
    • Low

    Description

      The bug

      1.16-pre2, Mojang names

      It looks like the method net.minecraft.world.entity.NeutralMob.playerDied(Player) is missing a return statement for the case that the gamerule forgiveDeadPlayers == false (currently there is just an empty if-statement).

      Note that this currently has no effect on the game because that method is only called if forgiveDeadPlayers == true (see call hierarchy).

      Attachments

        Activity

          People

            hkniberg [Mojang] Henrik Kniberg
            marcono1234 [Mod] Marcono1234
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: