TreeCheck & NoAnimationTreeDestroye update

Increased accuracy of TreeCheck
Fixed that when animation is disabled, it doesn't replant.
This commit is contained in:
Brian 2018-12-15 12:53:26 +02:00
parent 17cb5b6b76
commit e485388b3d
2 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -104,3 +104,4 @@ target/classes/config\.yml
\.idea/libraries/Maven__org_yaml_snakeyaml_1_18\.xml \.idea/libraries/Maven__org_yaml_snakeyaml_1_18\.xml
target/classes/com/songoda/ultimatetimber/utils/VersionChecker\.class target/classes/com/songoda/ultimatetimber/utils/VersionChecker\.class
target/UltimateTimber-maven-version-number.jar

View File

@ -57,7 +57,7 @@ public class TreeChecker {
offset determines the search radius around the main trunk offset determines the search radius around the main trunk
maxheight sets the maximum height the plugin will crawl through to find a tree maxheight sets the maximum height the plugin will crawl through to find a tree
*/ */
int offset = 5; int offset = 8;
int maxHeight = 31; int maxHeight = 31;
/* /*
@ -108,11 +108,11 @@ public class TreeChecker {
int radMin, radMax; int radMin, radMax;
if (i > 5) { if (i > 5) {
radMin = -2; radMin = -3; //-2
radMax = 3; radMax = 4; //3
} else { } else {
radMin = -1; radMin = -2; //-1
radMax = 2; radMax = 3; //2
} }
for (int x = radMin; x < radMax; x++) for (int x = radMin; x < radMax; x++)