mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-22 18:25:59 +01:00
quick fix
This commit is contained in:
parent
0556d9be1a
commit
3a3a9a2041
@ -58,8 +58,8 @@ public class ModuleAutoSell implements Module {
|
|||||||
for (ItemStack itemStack : hopperBlock.getInventory().getContents()) {
|
for (ItemStack itemStack : hopperBlock.getInventory().getContents()) {
|
||||||
if (itemStack.getType() == material) {
|
if (itemStack.getType() == material) {
|
||||||
econ.depositPlayer(Bukkit.getOfflinePlayer(hopper.getPlacedBy()), price * itemStack.getAmount());
|
econ.depositPlayer(Bukkit.getOfflinePlayer(hopper.getPlacedBy()), price * itemStack.getAmount());
|
||||||
|
hopperBlock.getInventory().removeItem(itemStack);
|
||||||
}
|
}
|
||||||
hopperBlock.getInventory().removeItem(itemStack);
|
|
||||||
}
|
}
|
||||||
} catch (Exception ignored) {}
|
} catch (Exception ignored) {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user