Skip to content

Commit add1c8e

Browse files
committed
Fix a very rare crash when rendering the debug F3 screen.
1 parent 9119041 commit add1c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/darkhax/gamestages/GameStages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private void onF3Text (CustomizeGuiOverlayEvent.DebugText event) {
4949

5050
if (mc.options.renderDebug) {
5151

52-
if (mc.player.isShiftKeyDown()) {
52+
if (mc.player != null && mc.player.isShiftKeyDown()) {
5353

5454
final IStageData data = GameStageHelper.getPlayerData(mc.player);
5555

0 commit comments

Comments
 (0)