mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-27 15:29:36 -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);
|
||||
|
||||
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.");
|
||||
} else if (width == 0 || height == 0 || length == 0) {
|
||||
game.Chat.Add("&cOne of the map dimensions is invalid.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user