修复了使用菜单创建领地时不会自动选点或选点错误的问题

This commit is contained in:
zhangyuheng 2024-07-07 11:01:04 +08:00
parent e7a5e2b37f
commit eb9fd31277
2 changed files with 2 additions and 7 deletions

View File

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

View File

@ -1,11 +1,9 @@
package cn.lunadeer.dominion.cuis;
import cn.lunadeer.dominion.Dominion;
import cn.lunadeer.dominion.controllers.AbstractOperator;
import cn.lunadeer.dominion.controllers.BukkitPlayerOperator;
import cn.lunadeer.dominion.controllers.DominionController;
import cn.lunadeer.dominion.tuis.dominion.DominionManage;
import cn.lunadeer.minecraftpluginutils.Notification;
import cn.lunadeer.minecraftpluginutils.XLogger;
import cn.lunadeer.minecraftpluginutils.scui.CuiTextInput;
import org.bukkit.Location;
@ -32,10 +30,7 @@ public class CreateDominion {
XLogger.debug("createDominionCB.run: %s", input);
BukkitPlayerOperator operator = BukkitPlayerOperator.create(sender);
Map<Integer, Location> points = Dominion.pointsSelect.get(sender.getUniqueId());
if (points == null || points.get(0) == null || points.get(1) == null) {
points = autoPoints(sender);
}
Map<Integer, Location> points = autoPoints(sender);
operator.getResponse().thenAccept(result -> {
if (Objects.equals(result.getStatus(), AbstractOperator.Result.SUCCESS)) {
DominionManage.show(sender, new String[]{"list"});