2013-04-10 04:06:41 +00:00
|
|
|
From eddd098c9ca459d6be96a9ba9f419973947c9483 Mon Sep 17 00:00:00 2001
|
2013-03-01 22:47:17 +00:00
|
|
|
From: Yariv Livay <yarivlivay@gmail.com>
|
|
|
|
Date: Tue, 26 Feb 2013 20:14:34 +0200
|
2013-04-10 02:36:11 +00:00
|
|
|
Subject: [PATCH] BUKKIT-3668 Fix wrong block in BlockDispenseEvent when
|
|
|
|
filling empty bucket
|
2013-03-01 22:47:17 +00:00
|
|
|
|
|
|
|
---
|
2013-04-10 02:36:11 +00:00
|
|
|
src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2013-03-01 22:47:17 +00:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
2013-03-15 21:35:56 +00:00
|
|
|
index 8f7e09b..ae65526 100644
|
2013-03-01 22:47:17 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
2013-03-15 21:35:56 +00:00
|
|
|
@@ -32,7 +32,7 @@ final class DispenseBehaviorEmptyBucket extends DispenseBehaviorItem {
|
2013-03-01 22:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CraftBukkit start
|
|
|
|
- org.bukkit.block.Block block = world.getWorld().getBlockAt(i, j, k);
|
|
|
|
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(isourceblock.getBlockX(), j, isourceblock.getBlockZ());
|
|
|
|
CraftItemStack craftItem = CraftItemStack.asCraftMirror(itemstack);
|
|
|
|
|
|
|
|
BlockDispenseEvent event = new BlockDispenseEvent(block, craftItem.clone(), new org.bukkit.util.Vector(0, 0, 0));
|
|
|
|
--
|
2013-04-10 02:36:11 +00:00
|
|
|
1.8.2.1
|
2013-03-01 22:47:17 +00:00
|
|
|
|