diff --git a/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/server/level/ServerLevelMixin_API.java b/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/server/level/ServerLevelMixin_API.java index c9d3ec3cc03..aa4f97eb5b8 100644 --- a/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/server/level/ServerLevelMixin_API.java +++ b/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/server/level/ServerLevelMixin_API.java @@ -350,8 +350,8 @@ public ChunkManager chunkManager() { RegionFile regionFile = new RegionFile(path, regionPath, true); final Vector4i regionBound = this.api$pathToRegionPos(path); // Find all chunks in bounds - final Stream chunkPosStream = IntStream.range(regionBound.x(), regionBound.z()) - .mapToObj(x -> IntStream.range(regionBound.y(), regionBound.w()). + final Stream chunkPosStream = IntStream.rangeClosed(regionBound.x(), regionBound.z()) + .mapToObj(x -> IntStream.rangeClosed(regionBound.y(), regionBound.w()). mapToObj(z -> new ChunkPos(x, z))) .flatMap(Function.identity()); return mapper.apply(regionFile, chunkPosStream).onClose(() -> this.api$close(regionFile));