if (filterItem != null) {
ArrayList<String> filterItemOre = getOreDict(filterItem);
if (itemEntityOre != null && filterItemOre != null) {
for (String oreName : itemEntityOre) {
if (oreName != null && filterItemOre.contains(oreName)) {
<BUG>container.transferStackInSlot(event.getItem().getEntityItem()); //custom method to put itemEntity's itemStack into the backpack

shouldSave = true;
}</BUG>
}

if (filterItem != null) {
if (event.getItem().getEntityItem().getItem() == filterItem.getItem()) {
ItemStack returned = container.transferStackInSlot(event.getItem().getEntityItem()); //custom method to put itemEntity's itemStack into the backpack
if (returned != null) shouldSave = true;
