forked from MagicBane/Server
Opposite of 1006300 created as 1006301.
This commit is contained in:
@@ -107,9 +107,11 @@ public class Zone extends AbstractGameObject {
|
|||||||
if (this.guild_zone) {
|
if (this.guild_zone) {
|
||||||
this.max_blend = 128;
|
this.max_blend = 128;
|
||||||
this.min_blend = 128;
|
this.min_blend = 128;
|
||||||
|
this.terrain_max_y = 5;
|
||||||
this.major_radius = (int) Enum.CityBoundsType.ZONE.halfExtents;
|
this.major_radius = (int) Enum.CityBoundsType.ZONE.halfExtents;
|
||||||
this.minor_radius = (int) Enum.CityBoundsType.ZONE.halfExtents;
|
this.minor_radius = (int) Enum.CityBoundsType.ZONE.halfExtents;
|
||||||
this.terrain_type = "PLANAR";
|
this.terrain_type = "TARGA";
|
||||||
|
this.terrain_image = 1006301;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.terrain_type.equals("NONE"))
|
if (this.terrain_type.equals("NONE"))
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import java.io.IOException;
|
|||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
public enum MapLoader {
|
public enum MapLoader {
|
||||||
@@ -137,6 +138,16 @@ public enum MapLoader {
|
|||||||
|
|
||||||
}); // Try with resources block
|
}); // Try with resources block
|
||||||
|
|
||||||
|
// Generate full white alternate to 1600300
|
||||||
|
// Declare and initialize an array of short[16][16]
|
||||||
|
|
||||||
|
short[][] heightMapEntry = new short[16][16];
|
||||||
|
|
||||||
|
for (short[] shorts : heightMapEntry)
|
||||||
|
Arrays.fill(shorts, (short) 255);
|
||||||
|
|
||||||
|
Terrain._heightmap_pixel_cache.put(1006301, heightMapEntry);
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Logger.error(e);
|
Logger.error(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user