From 0600f9574b2cff8a6fe1ca3699b41520f90f3990 Mon Sep 17 00:00:00 2001 From: Jonty800 Date: Sun, 11 Nov 2012 15:54:04 +0000 Subject: [PATCH] Fixed cuboids not working if 0 doors were on a world (Thanks Xanderortiz) --- fCraft/Doors/DoorHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/fCraft/Doors/DoorHandler.cs b/fCraft/Doors/DoorHandler.cs index 47a8dd2..181b883 100644 --- a/fCraft/Doors/DoorHandler.cs +++ b/fCraft/Doors/DoorHandler.cs @@ -41,6 +41,7 @@ public static DoorHandler GetInstance () { //cuboid over-fix? public static void PlayerPlacedDoor ( object sender, Events.PlayerPlacingBlockEventArgs e ) { + if ( e.Player.World.Map.Doors == null ) return; if ( e.Player.World != null ) { if ( e.Player.World.Map != null ) { if ( e.Context != BlockChangeContext.Manual ) {