-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a4b64f
commit 2e9fa31
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
patches/server/0307-Fix-MC-258430-Camel-LastPoseTime.patch
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: BillyGalbreath <blake.galbreath@gmail.com> | ||
Date: Thu, 15 Dec 2022 02:03:38 -0600 | ||
Subject: [PATCH] Fix MC-258430 Camel LastPoseTime | ||
|
||
This isn't a proper fix, but just a temporary workaround by | ||
resetting the LastPoseTime when a player mounts a camel. | ||
|
||
diff --git a/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java b/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java | ||
index f9d77ad2493b9ba67e8f45ce248d29a8e9ab7b80..1074d6bda611feb60230168774cc3f8b278c8a38 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java | ||
+++ b/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java | ||
@@ -85,6 +85,12 @@ public class Camel extends AbstractHorse implements PlayerRideableJumping, Rider | ||
public int getPurpurBreedTime() { | ||
return this.level.purpurConfig.camelBreedingTicks; | ||
} | ||
+ | ||
+ @Override | ||
+ protected void doPlayerRide(Player player) { | ||
+ resetLastPoseChangeTick(this.level.getGameTime()); | ||
+ super.doPlayerRide(player); | ||
+ } | ||
// Purpur end | ||
|
||
@Override |