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

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

XMLWordPrintable

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

      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).

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

              Created:
              Updated:
              Resolved:
              CHK: