ITEMS/mcl_farming: Convert correct floor node to dirt as gourd grows #231
No reviewers
Labels
No Label
blocker
bug
code quality
confirmed
critical
discussion
high priority
incompatibility
incomplete feature
invalid
low priority
missing feauture
needs testing
packet spam
performance
project
regression
translations
unconfirmed
in review
ready for review
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mineclonia/Mineclonia#231
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix-gourd-farmland-dirtification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
TRACKING ISSUE: #227
Before this patch, growing a gourd (e.g. melon, pumpkin) would always
convert a node west of the node below the stem to dirt if belonged to
the group “dirtifies_below_solid”. This happened because of a loop in
which the variables floorpos and floor were re-used without setting a
new value … therefore, both floorpos and floor were always containing
the last values set in a previous loop instead of the correct values.
Solution
This patch fixes the problem by setting both variables in both loops.
Details
It seems to me that growing gourds was never properly tested.
Testing Steps
Prerequisites
mcl_farming:soil
)mcl_farming:melon_seeds
)mcl_farming:pumpkin_seeds
)mcl_dye:white
)Verify Bug
This step is not necessary for this PR, as it has been verified that the bug exists in Mineclonia.
Other users of the farming mod (MCL2, MCL5) should verify the behaviour themselves using this step.
7ede0ca79a
in singleplayer survival mode.Verify Patch
4d02af8c94
in singleplayer survival mode.WIP: Convert correct floor node to dirt as gourd growsto WIP: ITEMS/mcl_farming: Convert correct floor node to dirt as gourd growsWIP: ITEMS/mcl_farming: Convert correct floor node to dirt as gourd growsto ITEMS/mcl_farming: Convert correct floor node to dirt as gourd growsI tested pumpkin and melon growth in survival mode with this patch and it did not seem to break anything related to farming pumpkin or melon. it also fixes the bug it claims to fix. I planted seeds, bonemealed them, and harvested the crops. since there is barely any change in the code, I think that is a thorough enough test. very nice fix :)