mirror of
https://github.com/Dreeam-qwq/Gale.git
synced 2025-12-28 11:09:09 +00:00
32 lines
1.7 KiB
Diff
32 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MartijnMuijsers <martijnmuijsers@live.nl>
|
|
Date: Tue, 29 Nov 2022 15:55:05 +0100
|
|
Subject: [PATCH] Fix cow rotation when shearing mooshroom
|
|
|
|
License: MIT (https://opensource.org/licenses/MIT)
|
|
|
|
This patch is based on the following patch:
|
|
"Fix cow rotation when shearing mooshroom"
|
|
By: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
As part of: Purpur (https://github.com/PurpurMC/Purpur)
|
|
Licensed under: MIT (https://opensource.org/licenses/MIT)
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/MushroomCow.java b/src/main/java/net/minecraft/world/entity/animal/MushroomCow.java
|
|
index c4441ef250b95663198cfc9607d714dbe346512c..f5b6c4afa60116b25972bbdda3a9b814c2e22266 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/animal/MushroomCow.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/animal/MushroomCow.java
|
|
@@ -180,7 +180,13 @@ public class MushroomCow extends Cow implements Shearable {
|
|
|
|
entitycow.moveTo(this.getX(), this.getY(), this.getZ(), this.getYRot(), this.getXRot());
|
|
entitycow.setHealth(this.getHealth());
|
|
+ entitycow.copyPosition(this); // Gale - Purpur - fix cow rotation when shearing mooshroom
|
|
entitycow.yBodyRot = this.yBodyRot;
|
|
+ // Gale start - Purpur - fix cow rotation when shearing mooshroom
|
|
+ entitycow.setYHeadRot(this.getYHeadRot());
|
|
+ entitycow.yRotO = this.yRotO;
|
|
+ entitycow.xRotO = this.xRotO;
|
|
+ // Gale end - Purpur - fix cow rotation when shearing mooshroom
|
|
if (this.hasCustomName()) {
|
|
entitycow.setCustomName(this.getCustomName());
|
|
entitycow.setCustomNameVisible(this.isCustomNameVisible());
|