mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Slight Orchard logic fixes
Slightly increase search grid to include outlying fruit Don't skip over trunk on first level
This commit is contained in:
1 parent
b18cee80cb
commit
1ce2d45417
1 file changed
+1
-4
@@ -142,13 +142,10 @@ public class FarmLogicOrchard extends FarmLogic {
|
||||
List<Vect> candidates = new ArrayList<Vect>();
|
||||
|
||||
// Get additional candidates to return
|
||||
for (int i = -1; i < 2; i++) {
|
||||
for (int i = -2; i < 3; i++) {
|
||||
for (int j = 0; j < 2; j++) {
|
||||
for (int k = -1; k < 2; k++) {
|
||||
Vect candidate = new Vect(position.x + i, position.y + j, position.z + k);
|
||||
if (candidate.equals(position)) {
|
||||
continue;
|
||||
}
|
||||
if (Math.abs(candidate.x - start.x) > 5) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user