quick fix

This commit is contained in:
Brianna O'Keefe 2019-01-17 16:32:23 -05:00
parent 0556d9be1a
commit 3a3a9a2041

View File

@ -58,9 +58,9 @@ public class ModuleAutoSell implements Module {
for (ItemStack itemStack : hopperBlock.getInventory().getContents()) {
if (itemStack.getType() == material) {
econ.depositPlayer(Bukkit.getOfflinePlayer(hopper.getPlacedBy()), price * itemStack.getAmount());
}
hopperBlock.getInventory().removeItem(itemStack);
}
}
} catch (Exception ignored) {}
}
((EHopper)hopper).setAutoSellTimer(timeOut);