From e485388b3d329be97170c38ba2857d3746d55be9 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 15 Dec 2018 12:53:26 +0200 Subject: [PATCH] TreeCheck & NoAnimationTreeDestroye update Increased accuracy of TreeCheck Fixed that when animation is disabled, it doesn't replant. --- .gitignore | 1 + .../songoda/ultimatetimber/treefall/TreeChecker.java | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index aa5a461..471d272 100644 --- a/.gitignore +++ b/.gitignore @@ -104,3 +104,4 @@ target/classes/config\.yml \.idea/libraries/Maven__org_yaml_snakeyaml_1_18\.xml target/classes/com/songoda/ultimatetimber/utils/VersionChecker\.class +target/UltimateTimber-maven-version-number.jar diff --git a/src/main/java/com/songoda/ultimatetimber/treefall/TreeChecker.java b/src/main/java/com/songoda/ultimatetimber/treefall/TreeChecker.java index e3486ba..69f7376 100644 --- a/src/main/java/com/songoda/ultimatetimber/treefall/TreeChecker.java +++ b/src/main/java/com/songoda/ultimatetimber/treefall/TreeChecker.java @@ -57,7 +57,7 @@ public class TreeChecker { offset determines the search radius around the main trunk maxheight sets the maximum height the plugin will crawl through to find a tree */ - int offset = 5; + int offset = 8; int maxHeight = 31; /* @@ -108,11 +108,11 @@ public class TreeChecker { int radMin, radMax; if (i > 5) { - radMin = -2; - radMax = 3; + radMin = -3; //-2 + radMax = 4; //3 } else { - radMin = -1; - radMax = 2; + radMin = -2; //-1 + radMax = 3; //2 } for (int x = radMin; x < radMax; x++)