2013-07-11 03:31:30 +02:00
|
|
|
From d5e673509003b9580269ce356f1f62a8f2cde4b3 Mon Sep 17 00:00:00 2001
|
2013-07-10 13:48:26 +02:00
|
|
|
From: ItsHarry <info@itsjerryandharry.com>
|
|
|
|
Date: Wed, 10 Jul 2013 13:45:08 +0200
|
2013-07-11 02:28:04 +02:00
|
|
|
Subject: [PATCH] Fix StructureGrowEvent.getPlayer()
|
2013-07-10 13:48:26 +02:00
|
|
|
|
2013-07-11 02:28:04 +02:00
|
|
|
Fixes StructureGrowEvent.getPlayer(); always returning null regardless of whether
|
|
|
|
bonemeal was used or not.
|
2013-07-10 13:48:26 +02:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ItemDye.java b/src/main/java/net/minecraft/server/ItemDye.java
|
|
|
|
index d0ffd84..3a98903 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/ItemDye.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ItemDye.java
|
|
|
|
@@ -29,7 +29,7 @@ public class ItemDye extends Item {
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
if (itemstack.getData() == 15) {
|
|
|
|
- if (a(itemstack, world, i, j, k)) {
|
|
|
|
+ if (a(itemstack, world, i, j, k, entityhuman)) {
|
|
|
|
if (!world.isStatic) {
|
|
|
|
world.triggerEffect(2005, i, j, k, 0);
|
|
|
|
}
|
|
|
|
--
|
2013-07-11 02:28:04 +02:00
|
|
|
1.8.1.2
|
2013-07-10 13:48:26 +02:00
|
|
|
|