Update Events.java

This commit is contained in:
张宇衡 2023-01-08 16:54:09 +08:00
parent 55fe715f3b
commit 359bc708b4

View File

@ -24,7 +24,7 @@ public class Events implements Listener {
Location location = baby.getLocation();
Chunk chunk = location.getChunk();
ArrayList<Villager> villagers = new ArrayList<>();
// 遍历周围的区块
// 遍历周围的区块
for (int x = -4; x <= 4; x++) {
for (int z = -4; z <= 4; z++) {
Chunk chunk1 = chunk.getWorld().getChunkAt(chunk.getX() + x, chunk.getZ() + z);