Rendering title without subtitle through title
command crashes
#6925
Labels
1.16
Bug
This request reports or fixes a new or existing bug.
Regression
This request demonstrates something missing in a newer version that was present in a prior version.
Minecraft Version: 1.16.1
Forge Version: 32.0.47
Logs: Crash report (ignore the
TEST2.zip
pack, it's out of scope of this issue)Steps to Reproduce:
/title @a clear
(makes sure that title and subtitle are clear)/title @a title "Hello"
Description of issue:
When running the
title @a title <text>
command (any player can be in place of@a
, only those players will crash) to render a title on-screen without a previous call totitle @a subtitle <text>
to record a subtitle to be rendered alongside it, a crash occurs.The cause is in
ForgeIngameGui#renderTitle
, the Forge replacement forIngameGui
, which does not include null checks forthis.displayedSubTitle
andthis.displayedTitle
, which means that not having a recorded subtitle will cause a crash.displayedTitle
should not really be affected, since thetitle @a title <text>
command sets its value and then renders the title immediately after.IngameGUI
has both of these null checks present.Original bug report on forums
The text was updated successfully, but these errors were encountered: