Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
24 Zeilen
1.1 KiB
Diff
24 Zeilen
1.1 KiB
Diff
From c542317812b69c939334e3fd219fc21285e63138 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
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
|
index 8f7e09b..ae65526 100644
|
|
--- a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
|
+++ b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java
|
|
@@ -32,7 +32,7 @@ final 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.2.1
|
|
|