mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
Show far leaves in the studio scene view
The engine makes leaves with no wood in reach persistent, but the studio gave no sign of which ones they are. The block list of a scene now counts the leaves too far from wood and can draw only them. The rule is kept in step with IrisProceduralBlocks.isLeafTooFarFromWood by a comment on both. v3: eb3bae72d
This commit is contained in:
1 parent
7042538b89
commit
4950cf1969
5 files changed
+141
-24
No files matched your search
@@ -40,7 +40,10 @@ public final class IrisProceduralBlocks {
|
||||
private IrisProceduralBlocks() {
|
||||
}
|
||||
|
||||
/** Whether {@code state} is a leaf baked with no wood near enough for vanilla to keep it. */
|
||||
/**
|
||||
* Whether {@code state} is a leaf baked with no wood near enough for vanilla to keep it. The studio counts these
|
||||
* in {@code scene/farLeaves.ts} with the same rule; change both together.
|
||||
*/
|
||||
public static boolean isLeafTooFarFromWood(BlockState state) {
|
||||
return hasProperty(state, "persistent") && String.valueOf(UNREACHED_LEAF_DISTANCE).equals(propertyValue(state, "distance"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user