Skip to content

Commit

Permalink
Fixed cuboids not working if 0 doors were on a world (Thanks Xanderor…
Browse files Browse the repository at this point in the history
…tiz)
  • Loading branch information
Jonty800 committed Nov 11, 2012
1 parent 556ec09 commit 0600f95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fCraft/Doors/DoorHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 0600f95

Please sign in to comment.