You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExtendedLeavesBlock, used by Redwood and Hemlock leaves in Terrestria, doesn't subclass LeavesBlock because it uses a distance property that supports leaves being farther from trees than vanilla. Not extending LeavesBlock actually prevents a crash here because otherwise mods like this would have tried to retrieve the DISTANCE property which isn't present on redwood and hemlock leaves.
I think that there's a few things that could be done to fix this:
Use BlockTags.LEAVES instead of instanceof LeavesBlock
Instead of accessing the DISTANCE property, use hasRandomTicks to detect whether the leaf block can decay and randomTick to cause the leaf block to decay
While doing that could be a bit hacky, it also nicely supports both vanilla leaves and ExtendedLeavesBlock from Terraform.
The text was updated successfully, but these errors were encountered:
ExtendedLeavesBlock, used by Redwood and Hemlock leaves in Terrestria, doesn't subclass LeavesBlock because it uses a distance property that supports leaves being farther from trees than vanilla. Not extending LeavesBlock actually prevents a crash here because otherwise mods like this would have tried to retrieve the DISTANCE property which isn't present on redwood and hemlock leaves.
I think that there's a few things that could be done to fix this:
BlockTags.LEAVES
instead ofinstanceof LeavesBlock
While doing that could be a bit hacky, it also nicely supports both vanilla leaves and ExtendedLeavesBlock from Terraform.
The text was updated successfully, but these errors were encountered: