From 01987a03744f7bbe5b0c15af71d48f65ba230ace Mon Sep 17 00:00:00 2001 From: Luuk Date: Sun, 3 Jan 2021 18:45:32 +0100 Subject: [PATCH] Fix AbstractItemDb#getMatching improper block filtering (#3691) Co-authored-by: JRoy --- .../main/java/com/earth2me/essentials/items/AbstractItemDb.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/items/AbstractItemDb.java b/Essentials/src/main/java/com/earth2me/essentials/items/AbstractItemDb.java index e20034a0c..e219bf3b1 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/items/AbstractItemDb.java +++ b/Essentials/src/main/java/com/earth2me/essentials/items/AbstractItemDb.java @@ -160,7 +160,7 @@ public abstract class AbstractItemDb implements IConf, net.ess3.api.IItemDb { } } else if (args[0].equalsIgnoreCase("blocks")) { for (final ItemStack stack : user.getBase().getInventory().getContents()) { - if (stack == null || stack.getType() == Material.AIR) { + if (stack == null || stack.getType() == Material.AIR || !stack.getType().isBlock()) { continue; } is.add(stack.clone());