mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
allow the herbivorous absorber to also pick up flowers above and below it
Closes #19
This commit is contained in:
parent
ac3ce4d8cb
commit
8e6d29272b
1 changed files with 7 additions and 5 deletions
|
@ -32,11 +32,13 @@ public class TileEntityFlowerGenerator extends TileEntityImpl implements ITickab
|
||||||
List<BlockPos> possible = new ArrayList<>();
|
List<BlockPos> possible = new ArrayList<>();
|
||||||
int range = 3;
|
int range = 3;
|
||||||
for (int x = -range; x <= range; x++) {
|
for (int x = -range; x <= range; x++) {
|
||||||
for (int z = -range; z <= range; z++) {
|
for (int y = -1; y <= 1; y++) {
|
||||||
BlockPos offset = this.pos.add(x, 0, z);
|
for (int z = -range; z <= range; z++) {
|
||||||
IBlockState state = this.world.getBlockState(offset);
|
BlockPos offset = this.pos.add(x, y, z);
|
||||||
if (NaturesAuraAPI.FLOWERS.contains(state)) {
|
IBlockState state = this.world.getBlockState(offset);
|
||||||
possible.add(offset);
|
if (NaturesAuraAPI.FLOWERS.contains(state)) {
|
||||||
|
possible.add(offset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue