rdalkire / computercraft-programs

Some Lua scripts for the computercraft (minecraft mod) robot.
MIT License
2 stars 2 forks source link

When seeds were limited, crop-gaps appeared in the wrong places. #2

Closed rdalkire closed 10 years ago

rdalkire commented 10 years ago

See the image below: At the beginning (0) it uses wheat, but runs out in the middle of the row (1) and switches to potatoes. This is fine but when it gets to the next row (2), potatoes are the default, it can't use them because they would next to the ones in the previous row and therefore slow down growth. So, it just "gives up" and leave a gap. It should have switched to carrots instead. 2014-08-02_23 21 19

rdalkire commented 10 years ago

This was a very old bug, not a regression - The scene can be repeated with version 0.8.2 which was there before the bidirectional movement. The fix came with version 0.9.3; I re-did the sow() function to ensure that each reference slot is checked for appropriateness and availability, so that needless kind of gap is eliminated as shown in the image below. 2014-08-03_02 25 05