Skip to content

Fix rope support logic for tomato crops - #60

Open
Spyrauks wants to merge 1 commit into
Let-s-Do-Collection:1.21.1from
Spyrauks:fix/tomato-rope
Open

Fix rope support logic for tomato crops#60
Spyrauks wants to merge 1 commit into
Let-s-Do-Collection:1.21.1from
Spyrauks:fix/tomato-rope

Conversation

@Spyrauks

Copy link
Copy Markdown

Issue

When the tomato crop reaches its maximum height, the rope above it breaks but the rope attached to the crop is not affected. I do not know if this was an intented feature so as to make the rope a temporary support. I think it's more realistic for the rope to stay permanently. In any case, it does not make sense for the rope to just stand there without being attached to a support.

Fix

The canSurvive method of the TomatoCropHead class returned false when the block below the head was a TomatoCropBody which means that a TomatoCropHead block breaks as soon as he appears so I simply changed the boolean logic of the method so that a TomatoCropHead stays intact when it appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant