Fix crash when script cache is disabled

Bug report by zeotom on Minecraft Forum. Thanks!

+ Update supported version info (forgot to do it)
This commit is contained in:
ORelio 2016-06-17 22:40:24 +02:00
parent 734abe2296
commit 9fc4215924
2 changed files with 3 additions and 4 deletions

View file

@ -118,8 +118,7 @@ namespace MinecraftClient
{ {
try try
{ {
object compiledScript object compiledScript = assembly.CreateInstance("ScriptLoader.Script");
= CompileCache[scriptHash].CreateInstance("ScriptLoader.Script");
return return
compiledScript compiledScript
.GetType() .GetType()

View file

@ -21,9 +21,9 @@ namespace MinecraftClient
private static McTcpClient Client; private static McTcpClient Client;
public static string[] startupargs; public static string[] startupargs;
public const string Version = "1.9.1 DEV"; public const string Version = "1.10.0 DEV";
public const string MCLowestVersion = "1.4.6"; public const string MCLowestVersion = "1.4.6";
public const string MCHighestVersion = "1.9.2"; public const string MCHighestVersion = "1.10.0";
private static Thread offlinePrompt = null; private static Thread offlinePrompt = null;
private static bool useMcVersionOnce = false; private static bool useMcVersionOnce = false;