[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 authored and GitHub committed 2021-09-22 16:43:01 -05:00
1 parent ca77d22035
commit 7b969173f4
3 files changed
+24 -20

No files matched your search

+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)