Update to Minecraft 1.8.3

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot
2015-02-26 22:41:06 +00:00
parent d789ce91d4
commit 85be409b13
347 changed files with 5027 additions and 5465 deletions

View File

@@ -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))) {