-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not take into account "minimumLeavesAroundRequired" when using shi…
…ft down mode
- Loading branch information
Showing
6 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* Set minimum required fabric api (#22) | ||
* Do not take into account "minimumLeavesAroundRequired" when using shift down mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
src/main/java/fr/raksrinana/fallingtree/config/BreakMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
package fr.raksrinana.fallingtree.config; | ||
|
||
public enum BreakMode{ | ||
INSTANTANEOUS, SHIFT_DOWN | ||
INSTANTANEOUS(true), SHIFT_DOWN(false); | ||
private final boolean checkLeavesAround; | ||
|
||
BreakMode(boolean checkLeavesAround){ | ||
this.checkLeavesAround = checkLeavesAround; | ||
} | ||
|
||
public boolean shouldCheckLeavesAround(){ | ||
return this.checkLeavesAround; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters