[Door Manipulation] Resolve some typos and add a GM check. (#1550)

* [Door Manipulation] Resolve some typos and add a status check.

* Remove Status check and use GetGM() inside devtools check instead.
This commit is contained in:
Kinglykrab
2021-09-22 17:43:01 -04:00
committed by GitHub
parent ca77d22035
commit 7b969173f4
3 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -9191,7 +9191,7 @@ void Client::SetDisplayMobInfoWindow(bool display_mob_info_window)
bool Client::IsDevToolsEnabled() const
{
return dev_tools_enabled && RuleB(World, EnableDevTools);
return dev_tools_enabled && GetGM() && RuleB(World, EnableDevTools);
}
void Client::SetDevToolsEnabled(bool in_dev_tools_enabled)