mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-22 02:47:43 +01:00
Update to 1.14.1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From e6a82c5af231ce38496a394ea07227ad4ec578b6 Mon Sep 17 00:00:00 2001
|
||||
From 617301a9f118aaff29e08b3a0461423bafda464f Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Sat, 4 May 2019 01:10:30 -0500
|
||||
Subject: [PATCH] cows to mooshroom when fed mushrooms
|
||||
@@ -9,7 +9,7 @@ Subject: [PATCH] cows to mooshroom when fed mushrooms
|
||||
2 files changed, 75 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
||||
index 3d60b5c28..9834a8928 100644
|
||||
index d02e48a86..ab0995c2c 100644
|
||||
--- a/src/main/java/net/minecraft/server/Entity.java
|
||||
+++ b/src/main/java/net/minecraft/server/Entity.java
|
||||
@@ -995,6 +995,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||
@@ -21,7 +21,7 @@ index 3d60b5c28..9834a8928 100644
|
||||
if (!this.isSilent()) {
|
||||
this.world.a((EntityHuman) null, this.locX, this.locY, this.locZ, soundeffect, this.getSoundCategory(), f, f1);
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityCow.java b/src/main/java/net/minecraft/server/EntityCow.java
|
||||
index d2c2e3cc3..4b460a0a7 100644
|
||||
index d2c2e3cc3..3cb35c422 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityCow.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityCow.java
|
||||
@@ -4,6 +4,10 @@ package net.minecraft.server;
|
||||
@@ -87,9 +87,9 @@ index d2c2e3cc3..4b460a0a7 100644
|
||||
+ return false;
|
||||
+ }
|
||||
+ if (itemstack.getItem() == Blocks.BROWN_MUSHROOM.getItem()) {
|
||||
+ mooshroom.a(EntityMushroomCow.Type.BROWN);
|
||||
+ mooshroom.setVariant(EntityMushroomCow.Type.BROWN);
|
||||
+ } else {
|
||||
+ mooshroom.a(EntityMushroomCow.Type.RED);
|
||||
+ mooshroom.setVariant(EntityMushroomCow.Type.RED);
|
||||
+ }
|
||||
+ mooshroom.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, this.pitch);
|
||||
+ mooshroom.setHealth(this.getHealth());
|
||||
|
||||
Reference in New Issue
Block a user