summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityCow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityCow.patch')
-rw-r--r--nms-patches/EntityCow.patch13
1 files changed, 5 insertions, 8 deletions
diff --git a/nms-patches/EntityCow.patch b/nms-patches/EntityCow.patch
index 175a8e79..ec09d8ed 100644
--- a/nms-patches/EntityCow.patch
+++ b/nms-patches/EntityCow.patch
@@ -1,5 +1,5 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/EntityCow.java 2014-11-28 17:43:43.069707436 +0000
-+++ src/main/java/net/minecraft/server/EntityCow.java 2014-11-28 17:38:19.000000000 +0000
+--- /home/matt/mc-dev-private//net/minecraft/server/EntityCow.java 2015-02-26 22:40:22.491608140 +0000
++++ src/main/java/net/minecraft/server/EntityCow.java 2015-02-26 22:40:22.495608140 +0000
@@ -1,5 +1,10 @@
package net.minecraft.server;
@@ -11,13 +11,10 @@
public class EntityCow extends EntityAnimal {
public EntityCow(World world) {
-@@ -69,13 +74,23 @@
-
- public boolean a(EntityHuman entityhuman) {
+@@ -71,11 +76,21 @@
ItemStack itemstack = entityhuman.inventory.getItemInHand();
--
-+
- if (itemstack != null && itemstack.getItem() == Items.BUCKET && !entityhuman.abilities.canInstantlyBuild) {
+
+ if (itemstack != null && itemstack.getItem() == Items.BUCKET && !entityhuman.abilities.canInstantlyBuild && !this.isBaby()) {
- if (itemstack.count-- == 1) {
- entityhuman.inventory.setItem(entityhuman.inventory.itemInHandIndex, new ItemStack(Items.MILK_BUCKET));
- } else if (!entityhuman.inventory.pickup(new ItemStack(Items.MILK_BUCKET))) {