Skip to content

Commit b108641

Browse files
Remove pointless hardcode
1 parent 6f7d90c commit b108641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fCraft/World/Map.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public bool SetBlockNoNeighborChange(int x, int y, int z, Block newBlock)
320320
/// <param name="coords"> Coordinate vector (X,Y,Z). </param>
321321
/// <param name="type"> Block type to set. </param>
322322
public void SetBlock( Vector3I coords, Block type ) {
323-
if( coords.X < Width && coords.Y < Length && coords.Z < Height && coords.X >= 0 && coords.Y >= 0 && coords.Z >= 0 && (byte)type < 50 ) {
323+
if( coords.X < Width && coords.Y < Length && coords.Z < Height && coords.X >= 0 && coords.Y >= 0 && coords.Z >= 0 ) {
324324
Blocks[Index( coords )] = (byte)type;
325325
HasChangedSinceSave = true;
326326
}

0 commit comments

Comments
 (0)