mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-12 21:43:22 +01:00
Merge pull request #6929 from EliteTK/fix-invisible-elevator-doors
Fix #5417
This commit is contained in:
commit
7c2a40e8c7
1 changed files with 3 additions and 1 deletions
|
@ -1386,6 +1386,9 @@ public abstract class Contraption {
|
||||||
|
|
||||||
private void gatherBBsOffThread() {
|
private void gatherBBsOffThread() {
|
||||||
getContraptionWorld();
|
getContraptionWorld();
|
||||||
|
if (simplifiedEntityColliderProvider != null) {
|
||||||
|
simplifiedEntityColliderProvider.cancel(false);
|
||||||
|
}
|
||||||
simplifiedEntityColliderProvider = CompletableFuture.supplyAsync(() -> {
|
simplifiedEntityColliderProvider = CompletableFuture.supplyAsync(() -> {
|
||||||
VoxelShape combinedShape = Shapes.empty();
|
VoxelShape combinedShape = Shapes.empty();
|
||||||
for (Entry<BlockPos, StructureBlockInfo> entry : blocks.entrySet()) {
|
for (Entry<BlockPos, StructureBlockInfo> entry : blocks.entrySet()) {
|
||||||
|
@ -1402,7 +1405,6 @@ public abstract class Contraption {
|
||||||
})
|
})
|
||||||
.thenAccept(r -> {
|
.thenAccept(r -> {
|
||||||
simplifiedEntityColliders = Optional.of(r);
|
simplifiedEntityColliders = Optional.of(r);
|
||||||
simplifiedEntityColliderProvider = null;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue