2021-06-11 14:02:28 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: kickash32 <kickash32@gmail.com>
Date: Sat, 9 May 2020 02:01:48 -0400
Subject: [PATCH] Ensure EntityRaider respects game and entity rules for
picking up items
diff --git a/src/main/java/net/minecraft/world/entity/raid/Raider.java b/src/main/java/net/minecraft/world/entity/raid/Raider.java
2024-12-03 19:21:12 +01:00
index 0fb8779648c9c4ead7ffcc24781a6644a855b65b..b6f1d989df3811f423d1cdff98b05ecc4a9268fe 100644
2021-06-11 14:02:28 +02:00
--- a/src/main/java/net/minecraft/world/entity/raid/Raider.java
+++ b/src/main/java/net/minecraft/world/entity/raid/Raider.java
2024-10-23 16:08:40 +02:00
@@ -338,6 +338,7 @@ public abstract class Raider extends PatrollingMonster {
}
2021-06-11 14:02:28 +02:00
2024-10-23 16:08:40 +02:00
private boolean cannotPickUpBanner() {
2024-10-25 13:34:01 +02:00
+ if (!getServerLevel(this.mob).getGameRules().getBoolean(net.minecraft.world.level.GameRules.RULE_MOBGRIEFING) || !this.mob.canPickUpLoot()) return false; // Paper - respect game and entity rules for picking up items
2024-10-23 16:08:40 +02:00
if (!this.mob.hasActiveRaid()) {
return true;
} else if (this.mob.getCurrentRaid().isOver()) {