From 36ee4c1b372b5531a6c93562774331ca12eb1496 Mon Sep 17 00:00:00 2001 From: archie426 Date: Thu, 1 Sep 2022 16:06:09 +0100 Subject: [PATCH] Causes error on world gen without check --- Edits/BiomeGlobeDetour.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Edits/BiomeGlobeDetour.cs b/Edits/BiomeGlobeDetour.cs index 59df1b90..2c7a3eb1 100644 --- a/Edits/BiomeGlobeDetour.cs +++ b/Edits/BiomeGlobeDetour.cs @@ -21,8 +21,9 @@ public override void UnloadEdits() private static void Recipe_FindRecipes(OnRecipe.orig_FindRecipes orig, bool canDelayCheck) { + if (Main.dedServ) + return; Player player = Main.LocalPlayer; - bool oldGraveyard = player.ZoneGraveyard; bool oldSnow = player.ZoneSnow; bool oldNearCampfire = player.adjTile[TileID.Campfire];