mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix AbstractItemDb#getMatching improper block filtering (#3691)
Co-authored-by: JRoy <joshroy126@gmail.com>
This commit is contained in:
parent
5528b5b92c
commit
01987a0374
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue