addWhitelistEntriesToFilterItems(filterItems); //adds whitelisted items to filter
transferWithBasicFilter(filterItems, event, container);
if (itemEntityOre != null) {
for (String oreName : itemEntityOre) {
if (oreName != null && (oreName.startsWith("ore") || oreName.startsWith("gem") || oreName.startsWith("dust"))) {
<BUG>container.transferStackInSlot(event.getItem().getEntityItem()); //custom method to put itemEntity's itemStack into the backpack

shouldSave = true;
}</BUG>
}

addWhitelistEntriesToFilterItems(filterItems); //adds whitelisted items to filter
transferWithBasicFilter(filterItems, event, container);
if (itemEntityOre != null) {
for (String oreName : itemEntityOre) {
if (oreName != null && (oreName.startsWith("ore") || oreName.startsWith("gem") || oreName.startsWith("dust"))) {
ItemStack returned = container.transferStackInSlot(event.getItem().getEntityItem()); //custom method to put itemEntity's itemStack into the backpack
if (returned != null) shouldSave = true;
