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

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.16 Pre-release 2
    • Fix Version/s: 1.16 Pre-release 3
    • Labels:
      None
    • Confirmation Status:
      Plausible
    • Category:
      Mob behaviour, Player
    • Mojang Priority:
      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

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

              Dates

              Created:
              Updated:
              Resolved:
              CHK: