Probably fixed the single-MapBlock generator using 1 block lower water height than...
authorPerttu Ahola <celeron55@gmail.com>
Thu, 16 Jun 2011 15:51:23 +0000 (18:51 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 16 Jun 2011 15:51:23 +0000 (18:51 +0300)
src/map.cpp

index ba361b393f8e3267c7e32dfbf4cbfb2f5d336cc5..9230d1c16c543b82734c237a64d6d27ec7e68291 100644 (file)
@@ -4109,7 +4109,7 @@ MapBlock * ServerMap::generateBlock(
                        if(real_y > surface_y)
                        {
                                // If under water level, it's water
-                               if(real_y < WATER_LEVEL)
+                               if(real_y <= WATER_LEVEL)
                                {
                                        n.d = water_material;
                                        n.setLight(LIGHTBANK_DAY,