Skip to content

Commit 065f4ba

Browse files
committed
Spigot does not support parallel stream processing for placing blocks and entities in the world.
This is a hot-fix release.
1 parent 1a59ca7 commit 065f4ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<!-- Do not change unless you want different name for local builds. -->
8383
<build.number>-LOCAL</build.number>
8484
<!-- This allows to change between versions. -->
85-
<build.version>1.21.0</build.version>
85+
<build.version>1.21.1</build.version>
8686
<sonar.organization>bentobox-world</sonar.organization>
8787
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
8888
</properties>

src/main/java/world/bentobox/bentobox/nms/fallback/PasteHandlerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class PasteHandlerImpl implements PasteHandler {
1717
@Override
1818
public CompletableFuture<Void> pasteBlocks(Island island, World world, Map<Location, BlueprintBlock> blockMap) {
19-
return blockMap.entrySet().parallelStream()
19+
return blockMap.entrySet().stream()
2020
.map(entry -> DefaultPasteUtil.setBlock(island, entry.getKey(), entry.getValue()))
2121
.collect(
2222
Collectors.collectingAndThen(
@@ -28,7 +28,7 @@ public CompletableFuture<Void> pasteBlocks(Island island, World world, Map<Locat
2828

2929
@Override
3030
public CompletableFuture<Void> pasteEntities(Island island, World world, Map<Location, List<BlueprintEntity>> entityMap) {
31-
return entityMap.entrySet().parallelStream()
31+
return entityMap.entrySet().stream()
3232
.map(entry -> DefaultPasteUtil.setEntity(island, entry.getKey(), entry.getValue()))
3333
.collect(
3434
Collectors.collectingAndThen(

0 commit comments

Comments
 (0)