Skip to content

Commit

Permalink
Use new BlockBreakEvent#setDropItems
Browse files Browse the repository at this point in the history
Probably useless for our cases, I thought it could be applied to the
block.
  • Loading branch information
RoboMWM committed Jun 18, 2017
1 parent 9ce54e0 commit fd6e17f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<project.mainclass>com.extrahardmode.ExtraHardMode</project.mainclass>
<!--Use a profile to overwrite this-->
<outputdir>${project.build.outputDirectory}</outputdir>
<mc-version>1.11.2</mc-version>
<mc-version>1.12</mc-version>
<bukkit-ver>R0.1-SNAPSHOT</bukkit-ver>
<testDir>${basedir}/src/test/</testDir>
<srcDir>${basedir}/src/main/java/</srcDir>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public void onBlockBreak(BlockBreakEvent event)
{
if (fireTemporaryBlockBreakEvent(event.getBlock()))
{
event.setCancelled(true);
event.getBlock().setType(Material.AIR);
event.setDropItems(false);
}
}

Expand Down

0 comments on commit fd6e17f

Please sign in to comment.