From 9ed47768adee6e833c0952ffffe5f68a4c3bd327 Mon Sep 17 00:00:00 2001 From: ricky Date: Thu, 16 Jun 2011 12:14:34 +1000 Subject: [PATCH] Grrrr another ThreadStatic --- TShockAPI/TShock.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 6d4b09b6..5e4a5556 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -220,6 +220,10 @@ namespace TShockAPI { Main.rand = new Random(); } + if (WorldGen.genRand == null) + { + WorldGen.genRand = new Random(); + } if (text.StartsWith("exit")) {