Stop bees from dying after stinging

This commit is contained in:
BillyGalbreath
2025-01-12 14:09:12 -08:00
committed by granny
parent a79838e874
commit 64c235a806
3 changed files with 10 additions and 38 deletions

View File

@@ -9,3 +9,11 @@
}
public void setStayOutOfHiveCountdown(int stayOutOfHiveCountdown) {
@@ -398,6 +_,7 @@
this.hurtServer(level, this.damageSources().drown(), 1.0F);
}
+ if (hasStung && !this.level().purpurConfig.beeDiesAfterSting) setHasStung(false); else // Purpur - Stop bees from dying after stinging
if (hasStung) {
this.timeSinceSting++;
if (this.timeSinceSting % 5 == 0 && this.random.nextInt(Mth.clamp(1200 - this.timeSinceSting, 1, 1200)) == 0) {