diff --git a/patches/server/0012-respect-treasure-map-option-for-dolphins.patch b/patches/server/0012-respect-treasure-map-option-for-dolphins.patch index f105085..2b219b1 100644 --- a/patches/server/0012-respect-treasure-map-option-for-dolphins.patch +++ b/patches/server/0012-respect-treasure-map-option-for-dolphins.patch @@ -5,7 +5,7 @@ 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 { @@ -13,7 +13,7 @@ index 45646c69ea73936a8916756fde37dd3f39db0d04..d36c32d8dc72f0b2a62ea226916b480a 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));