mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-28 16:05:54 -04:00
Increase map volume limit from 800^3 to int.MaxValue in singleplayer. (Thanks Pear)
This commit is contained in:
parent
6c5f9307b1
commit
0f472741ff
@ -118,7 +118,7 @@ namespace ClassicalSharp.Gui.Screens {
|
|||||||
int length = GetInt(2), seed = GetSeedInt(3);
|
int length = GetInt(2), seed = GetSeedInt(3);
|
||||||
|
|
||||||
long volume = (long)width * height * length;
|
long volume = (long)width * height * length;
|
||||||
if (volume > 800 * 800 * 800) {
|
if (volume > int.MaxValue) {
|
||||||
game.Chat.Add("&cThe generated map's volume is too big.");
|
game.Chat.Add("&cThe generated map's volume is too big.");
|
||||||
} else if (width == 0 || height == 0 || length == 0) {
|
} else if (width == 0 || height == 0 || length == 0) {
|
||||||
game.Chat.Add("&cOne of the map dimensions is invalid.");
|
game.Chat.Add("&cOne of the map dimensions is invalid.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user