修复了小范围扩建、缩小领地时经济计算尺寸不正确问题
All checks were successful
Java CI-CD with Maven / build (push) Successful in 14m17s

This commit is contained in:
zhangyuheng 2024-07-22 21:06:36 +08:00
parent 066d7a389b
commit 4706e1325a
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -295,7 +295,7 @@ public class DominionController {
} }
private static int vol(int x1, int y1, int z1, int x2, int y2, int z2) { private static int vol(int x1, int y1, int z1, int x2, int y2, int z2) {
return (x2 - x1 + 1) * (y2 - y1 + 1) * (z2 - z1 + 1); return (x2 - x1) * (y2 - y1) * (z2 - z1);
} }
private static int vol(int[] cords) { private static int vol(int[] cords) {
@ -303,7 +303,7 @@ public class DominionController {
} }
private static int sqr(int x1, int z1, int x2, int z2) { private static int sqr(int x1, int z1, int x2, int z2) {
return (x2 - x1 + 1) * (z2 - z1 + 1); return (x2 - x1) * (z2 - z1);
} }
private static int sqr(int[] cords) { private static int sqr(int[] cords) {