Skip to content

Commit

Permalink
修复了统计领地数量报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdeZhang committed Apr 3, 2024
1 parent 8abdacb commit 86e05af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.14.7-beta</version>
<version>1.14.9-beta</version>
<packaging>jar</packaging>

<name>Dominion</name>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/cn/lunadeer/dominion/Cache.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ public DominionDTO getDominion(Integer id) {
public int getPlayerDominionCount(Player player) {
UUID player_uuid = player.getUniqueId();
int count = 0;
for (Integer id : world_dominions.get(player.getWorld().getName())) {
DominionDTO dominion = id_dominions.get(id);
for (DominionDTO dominion : id_dominions.values()) {
if (dominion.getOwner().equals(player_uuid)) {
count++;
}
Expand Down

0 comments on commit 86e05af

Please sign in to comment.