Skip to content

Commit

Permalink
Remove pointless hardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Oct 21, 2017
1 parent 6f7d90c commit b108641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fCraft/World/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b108641

Please sign in to comment.