summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntitySheep.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntitySheep.patch')
-rw-r--r--nms-patches/EntitySheep.patch11
1 files changed, 9 insertions, 2 deletions
diff --git a/nms-patches/EntitySheep.patch b/nms-patches/EntitySheep.patch
index 7ff88ab3..5cd1df48 100644
--- a/nms-patches/EntitySheep.patch
+++ b/nms-patches/EntitySheep.patch
@@ -35,7 +35,7 @@
}
protected void r() {
-@@ -123,6 +137,15 @@
+@@ -123,11 +137,22 @@
public boolean a(EntityHuman entityhuman, EnumHand enumhand, ItemStack itemstack) {
if (itemstack != null && itemstack.getItem() == Items.SHEARS && !this.isSheared() && !this.isBaby()) {
if (!this.world.isClientSide) {
@@ -51,7 +51,14 @@
this.setSheared(true);
int i = 1 + this.random.nextInt(3);
-@@ -210,6 +233,12 @@
+ for (int j = 0; j < i; ++j) {
++ this.forceDrops = true; // CraftBukkit
+ EntityItem entityitem = this.a(new ItemStack(Item.getItemOf(Blocks.WOOL), 1, this.getColor().getColorIndex()), 1.0F);
++ this.forceDrops = false; // CraftBukkit
+
+ entityitem.motY += (double) (this.random.nextFloat() * 0.05F);
+ entityitem.motX += (double) ((this.random.nextFloat() - this.random.nextFloat()) * 0.1F);
+@@ -210,6 +235,12 @@
}
public void B() {