Add missing forceDrop toggles
This commit is contained in:
@@ -10,7 +10,15 @@
|
||||
|
||||
public abstract class Raider extends PatrollingMonster {
|
||||
|
||||
@@ -236,7 +239,7 @@
|
||||
@@ -230,13 +233,15 @@
|
||||
double d0 = (double) this.getEquipmentDropChance(enumitemslot);
|
||||
|
||||
if (!itemstack1.isEmpty() && (double) Math.max(this.random.nextFloat() - 0.1F, 0.0F) < d0) {
|
||||
+ this.forceDrops = true; // Paper - Add missing forceDrop toggles
|
||||
this.spawnAtLocation(world, itemstack1);
|
||||
+ this.forceDrops = false; // Paper - Add missing forceDrop toggles
|
||||
}
|
||||
|
||||
this.onItemPickup(itemEntity);
|
||||
this.setItemSlot(enumitemslot, itemstack);
|
||||
this.take(itemEntity, itemstack.getCount());
|
||||
@@ -19,7 +27,7 @@
|
||||
this.getCurrentRaid().setLeader(this.getWave(), this);
|
||||
this.setPatrolLeader(true);
|
||||
} else {
|
||||
@@ -290,7 +293,7 @@
|
||||
@@ -290,7 +295,7 @@
|
||||
@Nullable
|
||||
private ItemEntity pursuedBannerItemEntity;
|
||||
|
||||
@@ -28,7 +36,7 @@
|
||||
this.mob = entityraider;
|
||||
this.setFlags(EnumSet.of(Goal.Flag.MOVE));
|
||||
}
|
||||
@@ -335,6 +338,7 @@
|
||||
@@ -335,6 +340,7 @@
|
||||
}
|
||||
|
||||
private boolean cannotPickUpBanner() {
|
||||
@@ -36,7 +44,7 @@
|
||||
if (!this.mob.hasActiveRaid()) {
|
||||
return true;
|
||||
} else if (this.mob.getCurrentRaid().isOver()) {
|
||||
@@ -518,7 +522,7 @@
|
||||
@@ -518,7 +524,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +53,7 @@
|
||||
|
||||
private final Raider mob;
|
||||
private final float hostileRadiusSqr;
|
||||
@@ -547,7 +551,7 @@
|
||||
@@ -547,7 +553,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
Raider entityraider = (Raider) iterator.next();
|
||||
|
||||
@@ -54,7 +62,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -564,7 +568,7 @@
|
||||
@@ -564,7 +570,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
Raider entityraider = (Raider) iterator.next();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user