From cc421e7e335a6f55ba6ab83f9ad4ed9ce9abab2b Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Thu, 25 Mar 2021 13:59:57 +0100 Subject: [PATCH] Fixes #2906 --- CHANGELOG.md | 1 + .../implementation/handlers/VanillaInventoryDropHandler.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6301ce528..f6ca8c203 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ * Fixed #2895 * Fixed #2896 * Fixed #2899 +* Fixed #2906 ## Release Candidate 21 (14 Mar 2021) https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#21 diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/VanillaInventoryDropHandler.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/VanillaInventoryDropHandler.java index 312491412..fe3549dbe 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/VanillaInventoryDropHandler.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/VanillaInventoryDropHandler.java @@ -57,6 +57,11 @@ public class VanillaInventoryDropHandler @Override @ParametersAreNonnullByDefault public void onPlayerBreak(BlockBreakEvent e, ItemStack item, List drops) { + // Fixes #2906 - Spigot being buggy as always... + if (!PaperLib.isPaper()) { + return; + } + Block b = e.getBlock(); BlockState state = PaperLib.getBlockState(b, false).getState();