Add option to disable dolphin treasure searching

This commit is contained in:
William Blake Galbreath
2025-01-07 18:38:59 -08:00
committed by granny
parent 42c95b8717
commit d774aa3ef4
3 changed files with 12 additions and 38 deletions

View File

@@ -0,0 +1,10 @@
--- a/net/minecraft/world/entity/animal/Dolphin.java
+++ b/net/minecraft/world/entity/animal/Dolphin.java
@@ -412,6 +_,7 @@
@Override
public boolean canUse() {
+ if (this.dolphin.level().purpurConfig.dolphinDisableTreasureSearching) return false; // Purpur - Add option to disable dolphin treasure searching
return this.dolphin.gotFish() && this.dolphin.getAirSupply() >= 100;
}