Skip to content

Commit

Permalink
Fix MC-258430 Camel LastPoseTime
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyGalbreath committed Dec 15, 2022
1 parent 0a4b64f commit 2e9fa31
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions patches/server/0307-Fix-MC-258430-Camel-LastPoseTime.patch
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

0 comments on commit 2e9fa31

Please sign in to comment.