Skip to content

Commit

Permalink
Treat 'Reference System.dll;' as 'Reference System.dll' for C# consis…
Browse files Browse the repository at this point in the history
…tency
  • Loading branch information
UnknownShadow200 committed May 7, 2020
1 parent b350727 commit 2dee378
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion MCGalaxy/Blocks/BlockOptions.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/CommandParser.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/Maintenance/CmdPlayerEdit.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/Moderation/CmdLocation.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/World/CmdResizeLvl.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/building/DrawCmd.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/CorePlugin/ConnectHandler.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Levels/LevelEnv.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Levels/LevelOptions.cs
@@ -1,5 +1,5 @@
/*
Copyright 2015 MCGalaxy team
Copyright 2015 MCGalaxy
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
4 changes: 3 additions & 1 deletion MCGalaxy/Scripting/Scripting.cs
Expand Up @@ -135,7 +135,9 @@ public abstract class IScripting {
if (!lines[i].CaselessStarts("reference ")) break;

int index = lines[i].IndexOf(' ') + 1;
string assem = lines[i].Substring(index);
// For consistency with C#, treat 'Reference X.dll;' as 'Reference X.dll'
string assem = lines[i].Substring(index).Replace(";", "");

args.ReferencedAssemblies.Add(assem);
lines.RemoveAt(i);
offset++; i--;
Expand Down

0 comments on commit 2dee378

Please sign in to comment.