Skip to content

Commit

Permalink
migrated pre-hard-fork patch 0012-respect-treasure-map-option-for-dol…
Browse files Browse the repository at this point in the history
…phins.patch
  • Loading branch information
TrainmasterHD committed Jan 5, 2025
1 parent 452373d commit 3756b1a
Showing 1 changed file with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: lukas81298 <[email protected]>
Date: Tue, 31 Jan 2023 23:39:58 +0100
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 5af4d590a9b0f17ba53c6959d9c18bd1269878a4..6793c9ea69df5a69c354ec7b096739bfeefcb5b6 100644
--- a/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
+++ b/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
@@ -177,7 +177,11 @@ public class Dolphin extends AgeableWaterCreature {
--- a/net/minecraft/world/entity/animal/Dolphin.java
+++ b/net/minecraft/world/entity/animal/Dolphin.java
@@ -169,7 +_,11 @@
protected void registerGoals() {
this.goalSelector.addGoal(0, new BreathAirGoal(this));
this.goalSelector.addGoal(0, new TryFindWaterGoal(this));
Expand All @@ -18,6 +10,6 @@ index 5af4d590a9b0f17ba53c6959d9c18bd1269878a4..6793c9ea69df5a69c354ec7b096739bf
+ this.goalSelector.addGoal(1, new Dolphin.DolphinSwimToTreasureGoal(this));
+ }
+ // Cheetah end
this.goalSelector.addGoal(2, new Dolphin.DolphinSwimWithPlayerGoal(this, 4.0D));
this.goalSelector.addGoal(4, new RandomSwimmingGoal(this, 1.0D, 10));
this.goalSelector.addGoal(2, new Dolphin.DolphinSwimWithPlayerGoal(this, 4.0));
this.goalSelector.addGoal(4, new RandomSwimmingGoal(this, 1.0, 10));
this.goalSelector.addGoal(4, new RandomLookAroundGoal(this));

0 comments on commit 3756b1a

Please sign in to comment.