From d69d23184524d4b05941e5f2c9f015c732ae1123 Mon Sep 17 00:00:00 2001 From: ItsHarry Date: Wed, 10 Jul 2013 13:48:26 +0200 Subject: [PATCH] Fixed StructureGrowEvent.getPlayer(); always returning null regardless of whether bone meal was used or not. --- ...rowEvent.getPlayer-always-returning-.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CraftBukkit-Patches/0065-Fixes-StructureGrowEvent.getPlayer-always-returning-.patch diff --git a/CraftBukkit-Patches/0065-Fixes-StructureGrowEvent.getPlayer-always-returning-.patch b/CraftBukkit-Patches/0065-Fixes-StructureGrowEvent.getPlayer-always-returning-.patch new file mode 100644 index 0000000000..5789a2cf5e --- /dev/null +++ b/CraftBukkit-Patches/0065-Fixes-StructureGrowEvent.getPlayer-always-returning-.patch @@ -0,0 +1,23 @@ +From 82c0825e94c0fbd1ef2e8eb8664c51158f7d8265 Mon Sep 17 00:00:00 2001 +From: ItsHarry +Date: Wed, 10 Jul 2013 13:45:08 +0200 +Subject: [PATCH] Fixes StructureGrowEvent.getPlayer(); always returning null + regardless of whether bonemeal was used or not. + + +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); + } +-- +1.8.3.msysgit.0 +