This commit is contained in:
parent
198c4dd426
commit
7fd8f8450c
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.lunadeer</groupId>
|
||||
<artifactId>LiteWorldEdit</artifactId>
|
||||
<version>2.4.3.7</version>
|
||||
<version>2.4.3.8</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>LiteWorldEdit</name>
|
||||
|
@ -45,9 +45,10 @@ 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();
|
||||
raw_block.setType(Material.AIR);
|
||||
if (LiteWorldEdit.instance.getConfigMgr().isDropItems()) {
|
||||
raw_block.getWorld().dropItemNaturally(raw_block.getLocation(), new ItemStack(raw_block.getType()));
|
||||
raw_block.getWorld().dropItemNaturally(raw_block.getLocation(), new ItemStack(block_type));
|
||||
}
|
||||
// 损坏镐
|
||||
if (!_creator.isOp() && _creator.getGameMode() != GameMode.CREATIVE) {
|
||||
|
Loading…
Reference in New Issue
Block a user