File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- using ObjectStream . Data ;
1+ using ObjectStream . Data ;
22using Oxide . Core ;
33using System ;
44using System . Collections . Generic ;
@@ -262,8 +262,8 @@ private void PreparseScript(CompilablePlugin plugin)
262262 if ( match . Success )
263263 {
264264 string result = match . Groups [ 1 ] . Value ;
265- if ( ! result . StartsWith ( "Oxide." ) && ! result . Contains ( "Harmony" ) && ! result . Contains ( "Newtonsoft.Json " )
266- && ! result . Contains ( "protobuf-net" ) && ! result . StartsWith ( "Rust. ") )
265+ if ( ! result . StartsWith ( "Oxide." ) && ! result . Contains ( "Newtonsoft.Json" ) && ! result . Contains ( "protobuf-net " )
266+ || ! CSharpExtension . SandboxEnabled && ! result . Contains ( "Harmony ") )
267267 {
268268 AddReference ( plugin , result ) ;
269269 Interface . Oxide . LogInfo ( "Added '// Reference: {0}' in plugin '{1}'" , result , plugin . Name ) ;
You can’t perform that action at this time.
0 commit comments