优化了粒子渲染性能、取消了进入离开领地的系统提示

This commit is contained in:
zhangyuheng 2024-05-24 21:09:03 +08:00
parent cd9e3856a1
commit 53d010bdab
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -123,11 +123,11 @@ public class Cache {
if (dominion != null) {
if (!isInDominion(dominion, player)) {
if (dominion.isTopDom()) {
Dominion.notification.info(player, "您已离开领地:%s", dominion.getName());
// Dominion.notification.info(player, "您已离开领地:%s", dominion.getName());
player.sendMessage(Component.text(dominion.getLeaveMessage()));
dominion = null;
} else {
Dominion.notification.info(player, "您已离开子领地:%s", dominion.getName());
// Dominion.notification.info(player, "您已离开子领地:%s", dominion.getName());
player.sendMessage(Component.text(dominion.getLeaveMessage()));
dominion = id_dominions.get(dominion.getParentDomId());
}
@ -139,7 +139,7 @@ public class Cache {
DominionDTO child = id_dominions.get(child_id);
if (isInDominion(child, player)) {
dominion = child;
Dominion.notification.info(player, "您正在进入子领地:%s", dominion.getName());
// Dominion.notification.info(player, "您正在进入子领地:%s", dominion.getName());
player.sendMessage(Component.text(dominion.getJoinMessage()));
update_player_current_dominion(player, dominion);
break;
@ -151,7 +151,7 @@ public class Cache {
List<DominionDTO> in_dominions = getDominionsParentAndChildren(player.getLocation());
if (in_dominions.size() != 0) {
dominion = in_dominions.get(0);
Dominion.notification.info(player, "您正在进入领地:%s", dominion.getName());
// Dominion.notification.info(player, "您正在进入领地:%s", dominion.getName());
player.sendMessage(Component.text(dominion.getJoinMessage()));
}
update_player_current_dominion(player, dominion);