2.2.0-1.20.4
将生命方块由玩家头换为其他原版多颜色方块
This commit is contained in:
@@ -38,12 +38,11 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
* <li>支持异步皮肤加载,避免方块放置阻塞</li>
|
||||
* <li>提供皮肤加载状态检查,确保皮肤就绪后再放置方块</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* <p>使用并发安全的数据结构确保多线程环境下的数据一致性。</p>
|
||||
*
|
||||
* @author xiaobai
|
||||
* @version 2.1.0
|
||||
* @version 2.2.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public class PlayerBlockManager {
|
||||
@@ -66,12 +65,10 @@ public class PlayerBlockManager {
|
||||
*/
|
||||
public boolean setLifeBlocks(Player player, Location center) {
|
||||
ConfigManager config = plugin.getConfigManager();
|
||||
int blockAmount = config.getBlocksPerPlayer();
|
||||
int spreadRange = config.getSpreadRange();
|
||||
boolean requireOpenSky = config.isRequireOpenSky();
|
||||
int maxAttempts = config.getMaxAttempts();
|
||||
boolean requireOpenSky = true; // 使用默认值,因为配置已移除
|
||||
int maxAttempts = 50; // 使用默认值,因为配置已移除
|
||||
|
||||
return generateLifeBlocksForPlayer(player, blockAmount, spreadRange, requireOpenSky, maxAttempts);
|
||||
return generateLifeBlocksForPlayer(player, 5, 5, requireOpenSky, maxAttempts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user