mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-22 22:10:09 +00:00

Oh, this is so broken, and really has been since the 1.13 update, if not earlier. - Fix call to isUnobstructed using the bounding box of the *destination* block rather than the turtle. This is almost always air, so the box is empty. - Because the above check has been wrong for so many years, we now significantly relax the "can push" checks for entities. We now allow pushing entities in any direction. We also remove the "isUnobstructed" check for the destination entity pos. This causes problems (if two entities are standing on a turtle, they'll obstruct each other), and given pistons don't perform such a check, I don't think we need it. - Also do a bit of cleanup around air/liquid checks. We often ended up reading the block state multiple times, which is a little ugly.