added strict command matching

This commit is contained in:
gnembon committed 2020-11-13 04:45:51 -04:00
1 parent 20b1470f1f
commit 5f9df1239a
3 files changed
+69 -6

No files matched your search

@@ -303,7 +303,7 @@ public class CarpetScriptServer
for (String function : host.globaFunctionNames(host.main, s -> !s.startsWith("_")).sorted().collect(Collectors.toList()))
{
if (host.appConfig.containsKey(StringValue.of("legacy_command_type_support"))) // temporary stuff for testing
if (host.appConfig.getOrDefault(StringValue.of("legacy_command_type_support"), Value.FALSE).getBoolean())
{
try
{