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

block log2 and leaves2 crash the game when set to certain data values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.2-pre2, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w37a, Minecraft 15w46a, Minecraft 15w51b, Minecraft 16w02a, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11.2
    • Fix Version/s: Minecraft 17w47a
    • Labels:
      None
    • Environment:

      Windows 8

    • Confirmation Status:
      Confirmed

      Description

      What I expected to happen was...:
      it placed a wood block

      What actually happened was...:
      it crashed the game

      Steps to Reproduce:
      1. Get a log2 or leaves2 with setblock, fill or give with one of the following data values: 2/3/6/7/10/11/14/15
      2. place the block
      3. crash

      14w46a
      Description: Unexpected error
      
      java.lang.IllegalArgumentException: Cannot set property arg{name=variant, clazz=class ana$a, values=[acacia, dark_oak]} to oak on block minecraft:log2, it is not an allowed value
      	at aqu$a.a(SourceFile:177)
      	at ams.a(SourceFile:54)
      	at amh.a(SourceFile:51)
      	at abv.a(SourceFile:49)
      	at adk.a(SourceFile:134)
      	at bke.a(SourceFile:345)
      	at bby.au(SourceFile:1426)
      	at bby.ax(SourceFile:1931)
      	at bby.aw(SourceFile:1749)
      	at bby.s(SourceFile:1593)
      	at bby.as(SourceFile:941)
      	at bby.a(SourceFile:385)
      	at net.minecraft.client.main.Main.main(SourceFile:122)
      

      The issue is that leaves2/log2 only have 2 set values(acacia and dark oak), and 2 invalid ones for the variant block state. By setting/getting these data values, the variant state is returned as invalid value, and the game doesn't like that.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                martmists mart mists
              • Votes:
                5 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: