Skip to content
Permalink
Browse files

Remove pointless hardcode

  • Loading branch information...
UnknownShadow200 committed Oct 21, 2017
1 parent 6f7d90c commit b108641d5706d959def865db2feec90777d35c67
Showing with 1 addition and 1 deletion.
  1. +1 −1 fCraft/World/Map.cs
@@ -320,7 +320,7 @@ public bool SetBlockNoNeighborChange(int x, int y, int z, Block newBlock)
/// <param name="coords"> Coordinate vector (X,Y,Z). </param>
/// <param name="type"> Block type to set. </param>
public void SetBlock( Vector3I coords, Block type ) {
if( coords.X < Width && coords.Y < Length && coords.Z < Height && coords.X >= 0 && coords.Y >= 0 && coords.Z >= 0 && (byte)type < 50 ) {
if( coords.X < Width && coords.Y < Length && coords.Z < Height && coords.X >= 0 && coords.Y >= 0 && coords.Z >= 0 ) {
Blocks[Index( coords )] = (byte)type;
HasChangedSinceSave = true;
}

0 comments on commit b108641

Please sign in to comment.
You can’t perform that action at this time.