From 0b548b2bac20d0e9781d0d67f9023c0cde4a4d88 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Sat, 11 Feb 2012 15:46:29 -0800 Subject: [PATCH] Have BukkitWorld.simulateBlockMine use Bukkit's dropNaturally --- CHANGELOG.txt | 3 ++- src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 055fb5d15..a5f52e2e0 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -13,7 +13,8 @@ - Update for new events system - Fixed /scriptname.js and no-double-slash settings not working - Corrected usage message for maze.js - - Fixed mimimum height check for cylinder generation + - Fixed mimimum height check for cylinder generation + - Get the items to be dropped for a block break from Bukkit 5.1.1: - Fixed some compatibility issues with SpoutPlugin diff --git a/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java b/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java index d98fa8cc0..7fa518bad 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java @@ -762,4 +762,9 @@ public class BukkitWorld extends LocalWorld { return true; } + + @Override + public void simulateBlockMine(Vector pt) { + world.getBlockAt(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ()).breakNaturally(); + } }