mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
From 2be562a064fd9341e1cfb8b298b5f77d66e9ce07 Mon Sep 17 00:00:00 2001
|
|
From: Yariv Livay <yarivlivay@gmail.com>
|
|
Date: Tue, 26 Feb 2013 20:14:34 +0200
|
|
Subject: [PATCH] BUKKIT-3668 Fix wrong block in BlockDispenseEvent when
|
|
filling empty bucket
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
|
index b381e22..0df0669 100644
|
|
--- a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
|
+++ b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
|
@@ -37,7 +37,7 @@ public class DispenseBehaviorEmptyBucket extends DispenseBehaviorItem {
|
|
}
|
|
|
|
// 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));
|
|
--
|
|
1.8.1-rc2
|
|
|