mojira.dev
MC-248368

Raiders cannot pick up ominous banner

What Happened

  • Raiders can't pick up ominous banner if the leader is removed not because of death.

Expected Behavior

  • Raiders can pick up ominous banners if the leader is removed for any reason.

  • MC-247440 shouldn't be marked as invalid because it reports the same bug.

 

Attachement

[media]

shows raiders can courrectly pick up ominous banner items after leader's death.

Attachement

[media]

shows raiders can't pick up ominous banner item(but still pathfind to it) if the leader is removed not because of death.

 

This is because removeFromRaid() method only update groupRaiderMap but leaders are stored in groupToLeaderMap.

 

// net.minecraft.world.entity.raid.Raid
public void removeFromRaid(Raider raider, boolean bl) {
    boolean bl2;
    Set<Raider> set = this.groupRaiderMap.get(raider.getWave());
    if (set != null && (bl2 = set.remove(raider))) {
        if (bl)
{             this.totalHealth -= raider.getHealth();         }
        raider.setCurrentRaid(null);
        this.updateBossbar();
        this.setDirty();
    }
}

 

 

Attachments

Comments 2

Filing a new bug is not the way to get the resolution of a bug changed. It is our intention that raiders do not pick-up banners dropped by players who are in survival mode. The resolution of the other ticket is valid. If you have additional concerns, please write in the comments of the original bug report. 

 

What you've done here is spread out the conversation across two tickets, thus creating more complexity in our conversation.

Thank you for your report!
We're tracking this issue in MC-247440, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as invalid. Please take a look at the parent ticket (MC-247440) and see if an explanation is provided there in the description of the ticket or in the comments for why this issue is invalid.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Youmiel

(Unassigned)

Confirmed

(Unassigned)

AI, Raid

1.18.1

Retrieved