mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-01-25 09:01:35 +01:00
Stopped AIR from being added to filters
This commit is contained in:
parent
7c02e0e37c
commit
2900dc2c3d
@ -329,19 +329,19 @@ public class EHopper implements Hopper {
|
|||||||
for (ItemStack item : items2) {
|
for (ItemStack item : items2) {
|
||||||
for (int aa : awhite) {
|
for (int aa : awhite) {
|
||||||
if (aa == num) {
|
if (aa == num) {
|
||||||
if (items2[num] != null && !items2[num].getType().name().contains("STAINED_GLASS"))
|
if (items2[num] != null && !items2[num].getType().name().contains("STAINED_GLASS") && items2[num].getType() != Material.AIR)
|
||||||
owhite.add(items2[num]);
|
owhite.add(items2[num]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int aa : ablack) {
|
for (int aa : ablack) {
|
||||||
if (aa == num) {
|
if (aa == num) {
|
||||||
if (items2[num] != null && !items2[num].getType().name().contains("STAINED_GLASS"))
|
if (items2[num] != null && !items2[num].getType().name().contains("STAINED_GLASS") && items2[num].getType() != Material.AIR)
|
||||||
oblack.add(items2[num]);
|
oblack.add(items2[num]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int aa : avoid) {
|
for (int aa : avoid) {
|
||||||
if (aa == num) {
|
if (aa == num) {
|
||||||
if (items2[num] != null && !items2[num].getType().equals(Material.BARRIER))
|
if (items2[num] != null && !items2[num].getType().equals(Material.BARRIER) && items2[num].getType() != Material.AIR)
|
||||||
ovoid.add(items2[num]);
|
ovoid.add(items2[num]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user