From 80b21a0b1323f5d88a0c24d54a15da892cbfb8ea Mon Sep 17 00:00:00 2001 From: William Blake Galbreath Date: Sat, 4 May 2019 00:04:14 -0500 Subject: [PATCH] Fix cow rotation when shearing mooshroom --- ...cow-rotation-when-shearing-mooshroom.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 patches/server/0005-Fix-cow-rotation-when-shearing-mooshroom.patch diff --git a/patches/server/0005-Fix-cow-rotation-when-shearing-mooshroom.patch b/patches/server/0005-Fix-cow-rotation-when-shearing-mooshroom.patch new file mode 100644 index 000000000..72e00d6e4 --- /dev/null +++ b/patches/server/0005-Fix-cow-rotation-when-shearing-mooshroom.patch @@ -0,0 +1,30 @@ +From 4f508213ef62b8d7fb9ec8dd48b5422d810ba153 Mon Sep 17 00:00:00 2001 +From: William Blake Galbreath +Date: Fri, 3 May 2019 23:53:16 -0500 +Subject: [PATCH] Fix cow rotation when shearing mooshroom + +--- + src/main/java/net/minecraft/server/EntityMushroomCow.java | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/main/java/net/minecraft/server/EntityMushroomCow.java b/src/main/java/net/minecraft/server/EntityMushroomCow.java +index d02455b3..842ce472 100644 +--- a/src/main/java/net/minecraft/server/EntityMushroomCow.java ++++ b/src/main/java/net/minecraft/server/EntityMushroomCow.java +@@ -39,7 +39,13 @@ public class EntityMushroomCow extends EntityCow { + + entitycow.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, this.pitch); + entitycow.setHealth(this.getHealth()); ++ // Purpur start - correctly copy rotation ++ entitycow.u(this); + entitycow.aQ = this.aQ; ++ entitycow.aS = this.aS; ++ entitycow.lastYaw = this.lastYaw; ++ entitycow.lastPitch = this.lastPitch; ++ // Purpur end + if (this.hasCustomName()) { + entitycow.setCustomName(this.getCustomName()); + } +-- +2.20.1 +