Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-124820

Boats inside non full level water raise / sink with NoGravity set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.12.2, 20w07a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Boats inside non full level water (see MC-124819) sink even if NoGravity is set to 1b.

      How to reproduce

      1. Create a straight waterfall
      2. Summon a boat with NoGravity:1b
        /summon boat ~ ~ ~ {NoGravity:1b}
        
      3. Push or steer the boat into the water
        It floats or sinks

      Code analysis

      Based on 1.12.2 decompiled using MCP 9.40

      It looks like the reason could be that when a boat has the status EntityBoat.Status.UNDER_FLOWING_WATER, the method net.minecraft.entity.item.EntityBoat.updateMotion() modifies d1 which is added to the y-motion instead of modifying d2.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: