Skip to content

Commit

Permalink
Fix location shift in block_break so dropped items aren't placed into…
Browse files Browse the repository at this point in the history
… adjacent blocks. (#1388)
  • Loading branch information
Lildirt authored Jul 26, 2024
1 parent 8d82ee3 commit 1a9ad32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void onBlockBreak(BlockBreakEvent e) {
Block block = chevent.getBlock();
block.setType(Material.AIR);
Location loc = block.getLocation();
loc.add(0.5, 0.5, 0.5);
loc.subtract(0.0, 0.125, 0.0);
if(chevent.isDropItems()) {
for(MCItemStack item : bbe.getDrops()) {
block.getWorld().dropItemNaturally(loc, (ItemStack) item.getHandle());
Expand Down

0 comments on commit 1a9ad32

Please sign in to comment.