修复了设置领地尺寸限制为`-1`无法生效且被强制重置对应配置的问题。
Java CI-CD with Maven / build (push) Successful in 13m39s Details

This commit is contained in:
zhangyuheng 2024-05-07 17:09:59 +08:00
parent cd13189793
commit 528adc5b46
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.21.10-beta</version>
<version>1.21.11-beta</version>
<packaging>jar</packaging>
<name>Dominion</name>

View File

@ -34,17 +34,17 @@ public class ConfigManager {
setAutoCreateRadius(10);
}
_limit_size_x = _file.getInt("Limit.SizeX", 128);
if (_limit_size_x <= 4) {
if (_limit_size_x <= 4 && _limit_size_x != -1) {
XLogger.err("Limit.SizeX 尺寸不能小于 4已重置为 128");
setLimitSizeX(128);
}
_limit_size_y = _file.getInt("Limit.SizeY", 64);
if (_limit_size_y <= 4) {
if (_limit_size_y <= 4 && _limit_size_y != -1) {
XLogger.err("Limit.SizeY 尺寸不能小于 4已重置为 64");
setLimitSizeY(64);
}
_limit_size_z = _file.getInt("Limit.SizeZ", 128);
if (_limit_size_z <= 4) {
if (_limit_size_z <= 4 && _limit_size_z != -1) {
XLogger.err("Limit.SizeZ 尺寸不能小于 4已重置为 128");
setLimitSizeZ(128);
}