Skip to content

Commit

Permalink
Change paper comment to cheetah
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik48N committed Apr 10, 2024
1 parent 46b3fb7 commit 46c32e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ Subject: [PATCH] respect treasure map option for dolphins


diff --git a/src/main/java/net/minecraft/world/entity/animal/Dolphin.java b/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
index 45646c69ea73936a8916756fde37dd3f39db0d04..d36c32d8dc72f0b2a62ea226916b480a101999f4 100644
index 45646c69ea73936a8916756fde37dd3f39db0d04..cbf428f91dccb6ad9884230ea35ff3390c326502 100644
--- a/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
+++ b/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
@@ -160,7 +160,7 @@ public class Dolphin extends WaterAnimal {
protected void registerGoals() {
this.goalSelector.addGoal(0, new BreathAirGoal(this));
this.goalSelector.addGoal(0, new TryFindWaterGoal(this));
- this.goalSelector.addGoal(1, new Dolphin.DolphinSwimToTreasureGoal(this));
+ if (level().paperConfig().environment.treasureMaps.enabled) this.goalSelector.addGoal(1, new Dolphin.DolphinSwimToTreasureGoal(this)); // Paper
+ if (level().paperConfig().environment.treasureMaps.enabled) this.goalSelector.addGoal(1, new Dolphin.DolphinSwimToTreasureGoal(this)); // Cheetah - Respect treasure map option for dolphins
this.goalSelector.addGoal(2, new Dolphin.DolphinSwimWithPlayerGoal(this, 4.0D));
this.goalSelector.addGoal(4, new RandomSwimmingGoal(this, 1.0D, 10));
this.goalSelector.addGoal(4, new RandomLookAroundGoal(this));

0 comments on commit 46c32e5

Please sign in to comment.