Increase map volume limit from 800^3 to int.MaxValue in singleplayer. (Thanks Pear)

This commit is contained in:
UnknownShadow200 2017-04-09 07:31:13 +10:00
parent 6c5f9307b1
commit 0f472741ff

View File

@ -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.");