1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Merge pull request #2637 from AnotherMC/master

Temporary fix for #2636
This commit is contained in:
Daniel Walsh 2020-12-20 22:20:03 +00:00 committed by GitHub
commit 2c4c7579ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,11 +67,13 @@ public class BlockListener implements Listener {
SlimefunItem sfItem = BlockStorage.check(block); SlimefunItem sfItem = BlockStorage.check(block);
if (sfItem != null) { if (sfItem != null) {
/* Temp fix for #2636
for (ItemStack item : sfItem.getDrops()) { for (ItemStack item : sfItem.getDrops()) {
if (item != null && !item.getType().isAir()) { if (item != null && !item.getType().isAir()) {
block.getWorld().dropItemNaturally(block.getLocation(), item); block.getWorld().dropItemNaturally(block.getLocation(), item);
} }
} }
*/
BlockStorage.clearBlockInfo(block); BlockStorage.clearBlockInfo(block);
} }
} else if (BlockStorage.hasBlockInfo(e.getBlock())) { } else if (BlockStorage.hasBlockInfo(e.getBlock())) {