mojira.dev
MC-114953

Setting title times to negative values acts like /time ... clear

The bug

When you set the the title times all to negative value it acts like the /title ... clear command.

Expected behavior

The /title command should not allow negative time values.

How to reproduce

  1. Set a subtitle

    /title @a subtitle ["Subtitle"]
  2. Set all title times to negative values

    /title @a times -1 -1 -1
  3. Display a title

    /title @a title ["Title"]

    → You will notice that the subtitle is not shown

Comments 2

Can confirm for MC 1.12.1.

That issue apparently has been fixed in some 1.13 snapshot.

It now just errors out:

Couldn't execute command for miwob: title @a times 1 1 -1
com.mojang.brigadier.exceptions.CommandSyntaxException: Integer must not be less than 0, found -1 at position 19: ...times 1 1 <--[HERE]

marcono1234

(Unassigned)

Confirmed

clear, command, subtitles, times, title

Minecraft 1.11.2, Minecraft 17w13a, Minecraft 1.12.1, Minecraft 1.12.2

Minecraft 17w50a

Retrieved