修复了扩展领地时经济行为错误问题(如果你是1.35.9-beta版本请务必更新)
All checks were successful
Java CI-CD with Maven / build (push) Successful in 8m31s

This commit is contained in:
zhangyuheng 2024-07-10 12:00:49 +08:00
parent fb1736e0f2
commit c859718f8b
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -230,7 +230,7 @@ public class DominionController {
AbstractOperator.Result SUCCESS = new AbstractOperator.Result(AbstractOperator.Result.SUCCESS, "成功扩展领地 %s %d格", dominion_name, size);
// 检查经济
handleEconomy(operator, Dominion.config.getEconomyOnlyXZ() ? sqr(newCords) - dominion.getSquare() : vol(newCords) - dominion.getVolume()
, false, FAIL, SUCCESS);
, true, FAIL, SUCCESS);
// 显示粒子效果
handleParticle(operator, dominion.getWorld(), newCords, FAIL);
dominion.setXYZ(newCords);
@ -445,7 +445,7 @@ public class DominionController {
"成功设置领地 %s 的传送点 %d %d %d", dominion_name
, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
} else {
operator.setResponse(new AbstractOperator.Result(AbstractOperator.Result.FAILURE, "传送点不在领地 %s 内", dominion_name));
operator.setResponse(FAIL.addMessage("传送点不在领地 %s 内", dominion_name));
}
}