From 244cde8067e98631597f6c0eb6695029dca151a2 Mon Sep 17 00:00:00 2001 From: Lildirt Date: Thu, 25 Jul 2024 20:25:44 -0400 Subject: [PATCH 1/2] Remove location shift from BukkitBlockListener as it places items into blocks. --- .../abstraction/bukkit/events/drivers/BukkitBlockListener.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java b/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java index d46a585b2..531e7538a 100644 --- a/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java +++ b/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java @@ -86,7 +86,6 @@ 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); if(chevent.isDropItems()) { for(MCItemStack item : bbe.getDrops()) { block.getWorld().dropItemNaturally(loc, (ItemStack) item.getHandle()); From 7ed9e5c39fb7e64a61dffcee8647331ff065b596 Mon Sep 17 00:00:00 2001 From: Lildirt Date: Thu, 25 Jul 2024 21:42:26 -0400 Subject: [PATCH 2/2] Location shift Y down by 0.125 --- .../abstraction/bukkit/events/drivers/BukkitBlockListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java b/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java index 531e7538a..1c5e5aeaa 100644 --- a/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java +++ b/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java @@ -86,6 +86,7 @@ public void onBlockBreak(BlockBreakEvent e) { Block block = chevent.getBlock(); block.setType(Material.AIR); Location loc = block.getLocation(); + loc.subtract(0.0, 0.125, 0.0); if(chevent.isDropItems()) { for(MCItemStack item : bbe.getDrops()) { block.getWorld().dropItemNaturally(loc, (ItemStack) item.getHandle());