-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated pre-hard-fork patch 0012-respect-treasure-map-option-for-dol…
…phins.patch
- Loading branch information
1 parent
452373d
commit 3756b1a
Showing
1 changed file
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
|
@@ -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)); |