diff --git a/pom.xml b/pom.xml
index 80d4897..9937380 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
cn.lunadeer
LiteWorldEdit
- 2.4.3.9
+ 2.5.0.1
jar
LiteWorldEdit
diff --git a/src/main/java/cn/lunadeer/liteworldedit/Jobs/Remove.java b/src/main/java/cn/lunadeer/liteworldedit/Jobs/Remove.java
index 00da5b1..ae3ed06 100644
--- a/src/main/java/cn/lunadeer/liteworldedit/Jobs/Remove.java
+++ b/src/main/java/cn/lunadeer/liteworldedit/Jobs/Remove.java
@@ -8,6 +8,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.inventory.ItemStack;
+import java.util.Collection;
import java.util.HashMap;
public class Remove extends Job {
@@ -45,10 +46,12 @@ public class Remove extends Job {
BlockBreakEvent event = new BlockBreakEvent(raw_block, _creator);
Bukkit.getPluginManager().callEvent(event);
if (!event.isCancelled()) {
- Material block_type = raw_block.getType();
+ Collection drops = raw_block.getDrops(pickaxe, _creator);
raw_block.setType(Material.AIR);
if (LiteWorldEdit.instance.getConfigMgr().isDropItems()) {
- raw_block.getWorld().dropItemNaturally(raw_block.getLocation(), new ItemStack(block_type));
+ for (ItemStack drop : drops) {
+ raw_block.getWorld().dropItemNaturally(raw_block.getLocation(), drop);
+ }
}
// 损坏镐
if (!_creator.isOp() && _creator.getGameMode() != GameMode.CREATIVE) {