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

Banners don't move in wind when over certain "Time" value of the level.dat

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 14w30c, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.4, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w40b, Minecraft 15w49b, Minecraft 16w06a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9, Minecraft 1.9.2, Minecraft 1.10.2, Minecraft 16w40a, Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13-pre10, Minecraft 1.13.1, Minecraft 19w14b, 1.15 Pre-Release 2
    • Confirmed
    • (Unassigned)

      The bug

      Banners don't move in wind when over certain Time value of the level.dat.

      Code analysis (by marcono1234)

      The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.

      The Time value of the level.dat file is used for rendering banners, beacons (they are affected by this in 1.8 but not in 16w06a anymore) and guardians (can't find any problems here). If I understand it correctly, the conversion from long to float is with high numbers too lossy:

      1000000696956L = 1000000720000f
      1000000701016L = 1000000720000f
      

      In the case of the banner using % 100L of the time should create the same moving animation but prevent this from happening.

            boq [Mojang] Bartosz Bok
            tim19278 Tim van der Linden
            Votes:
            43 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: