mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Don't compile new sandbox code outside TOOLS
Fix build
This commit is contained in:
@@ -320,6 +320,7 @@ namespace Robust.Shared.ContentPack
|
||||
MetadataReader reader,
|
||||
MethodDefinitionHandle method)
|
||||
{
|
||||
#if TOOLS
|
||||
var methodDef = reader.GetMethodDefinition(method);
|
||||
var type = GetTypeFromDefinition(reader, methodDef.GetDeclaringType());
|
||||
|
||||
@@ -329,6 +330,7 @@ namespace Robust.Shared.ContentPack
|
||||
_sawmill.Error("Hint: method is compiler-generated. Check for params collections and/or collection expressions:");
|
||||
|
||||
ReportBadReferences(peReader, reader, [method]);
|
||||
#endif
|
||||
}
|
||||
|
||||
private static string FormatMethodName(MetadataReader reader, MethodDefinition method)
|
||||
|
||||
Reference in New Issue
Block a user