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

Gamerule commands allow parameters other than true/false

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.4.4, Minecraft 1.4.7, Snapshot 13w06a, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Minecraft 1.7.4, Minecraft 14w03b, Minecraft 14w04b, Minecraft 1.7.9, Minecraft 14w17a, Minecraft 14w18b, Minecraft 1.7.10, Minecraft 14w28a, Minecraft 14w28b
    • Fix Version/s: Minecraft 14w32a
    • Labels:
      None
    • Environment:

      N/A

    • Confirmation Status:
      Confirmed

      Description

      When issuing a gamerule command, for example:
      /gamerule doFireTick on, the game will accept that "on" parameter without throwing any errors.

      This can result into major confusion, since the game will parse anything other than "true" as false.

      Expected

      • Throw an error for an incorrect paramter

      What happens

      • The game accepts the faulty parameter, yet considers it as false

      To reproduce
      1. Change a gamerule to anything other than "true/false"
      2. Check the gamerule, it will say the exact parameter that was entered
      3. Notice that it will be considered as false

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                searge [Mojang] Searge (Michael Stoyke)
                Reporter:
                mustek [Mod] Mustek
              • Votes:
                8 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: