mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 02:17:42 +01:00
Make cows also eat brown mushrooms
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 856e639ac4dda7f7e6c472725457f97b7f88ac0f Mon Sep 17 00:00:00 2001
|
||||
From c73d3c9684a3a1d635b4df7d4ad2ae84a28f6aa8 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Tue, 30 Apr 2019 19:17:21 -0500
|
||||
Subject: [PATCH] Integrate ridables
|
||||
@@ -9,7 +9,7 @@ Subject: [PATCH] Integrate ridables
|
||||
.../server/ControllerLookDolphin.java | 4 +-
|
||||
.../java/net/minecraft/server/Entity.java | 15 +++-
|
||||
.../net/minecraft/server/EntityChicken.java | 17 +++-
|
||||
.../java/net/minecraft/server/EntityCow.java | 16 +++-
|
||||
.../java/net/minecraft/server/EntityCow.java | 14 ++++
|
||||
.../net/minecraft/server/EntityCreeper.java | 14 ++++
|
||||
.../net/minecraft/server/EntityDolphin.java | 27 ++++++-
|
||||
.../net/minecraft/server/EntityDrowned.java | 9 ++-
|
||||
@@ -52,7 +52,7 @@ Subject: [PATCH] Integrate ridables
|
||||
.../controller/ControllerMoveWASDFlying.java | 58 ++++++++++++++
|
||||
.../controller/ControllerMoveWASDWater.java | 42 ++++++++++
|
||||
.../craftbukkit/entity/CraftLivingEntity.java | 10 +++
|
||||
48 files changed, 916 insertions(+), 61 deletions(-)
|
||||
48 files changed, 915 insertions(+), 60 deletions(-)
|
||||
create mode 100644 src/main/java/net/pl3x/purpur/controller/ControllerLookWASD.java
|
||||
create mode 100644 src/main/java/net/pl3x/purpur/controller/ControllerMoveWASD.java
|
||||
create mode 100644 src/main/java/net/pl3x/purpur/controller/ControllerMoveWASDFlying.java
|
||||
@@ -221,10 +221,10 @@ index a374c3051..4ab6b4fc4 100644
|
||||
public void b(float f, float f1) {}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityCow.java b/src/main/java/net/minecraft/server/EntityCow.java
|
||||
index 55169d564..4e70a2fc8 100644
|
||||
index 4b460a0a7..754133c72 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityCow.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityCow.java
|
||||
@@ -9,6 +9,11 @@ public class EntityCow extends EntityAnimal {
|
||||
@@ -13,6 +13,11 @@ public class EntityCow extends EntityAnimal {
|
||||
|
||||
public EntityCow(EntityTypes<? extends EntityCow> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -236,7 +236,7 @@ index 55169d564..4e70a2fc8 100644
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -59,6 +64,15 @@ public class EntityCow extends EntityAnimal {
|
||||
@@ -61,6 +66,15 @@ public class EntityCow extends EntityAnimal {
|
||||
|
||||
@Override
|
||||
public boolean a(EntityHuman entityhuman, EnumHand enumhand) {
|
||||
@@ -252,15 +252,6 @@ index 55169d564..4e70a2fc8 100644
|
||||
ItemStack itemstack = entityhuman.b(enumhand);
|
||||
|
||||
if (itemstack.getItem() == Items.BUCKET && !entityhuman.abilities.canInstantlyBuild && !this.isBaby()) {
|
||||
@@ -116,7 +130,7 @@ public class EntityCow extends EntityAnimal {
|
||||
itemstack.subtract(1);
|
||||
}
|
||||
for (int i = 0; i < 15; ++i) {
|
||||
- ((WorldServer) world).sendParticles(world.players, null, Particles.z,
|
||||
+ ((WorldServer) world).sendParticles(((WorldServer) world).players, null, Particles.HAPPY_VILLAGER,
|
||||
locX + random.nextFloat(), locY + (random.nextFloat() * 2), locZ + random.nextFloat(), 1,
|
||||
random.nextGaussian() * 0.05D, random.nextGaussian() * 0.05D, random.nextGaussian() * 0.05D, 0, true);
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityCreeper.java b/src/main/java/net/minecraft/server/EntityCreeper.java
|
||||
index 0c2c3c730..e0bfe0345 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityCreeper.java
|
||||
|
||||
Reference in New Issue
Block a user