Added gamerule to disable saving the game

This commit is contained in:
JappaWakka 2022-09-29 20:36:09 +02:00
parent d2d4736039
commit b14277a91d
1 changed files with 5 additions and 1 deletions

View File

@ -293,7 +293,11 @@
Case "|||" & Core.Player.Name
Core.SetScreen(New NewTrainerScreen(Me))
Case "Save"
Core.SetScreen(New SaveScreen(Me))
If CBool(GameModeManager.GetGameRuleValue("SavingDisabled", "0")) = True Then
Screen.TextBox.Show("Saving is not possible right now.")
Else
Core.SetScreen(New SaveScreen(Me))
End If
Case "Options"
Core.SetScreen(New NewOptionScreen(Me))
Case "Exit"