Skip to content

Commit

Permalink
When attempting to place the corresponding partner of a double chest …
Browse files Browse the repository at this point in the history
…block, check if that block is already placed before attempting to place it. Update Gradle and Loom.
  • Loading branch information
ArkoSammy12 committed Oct 14, 2024
1 parent 3fbdf8b commit 1525271
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish'
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ private void handleChestBlockIfNeeded(ExplosionEvent explosionEvent, BlockState
if (!(affectedBlock instanceof SingleAffectedBlock singleAffectedBlock)) {
continue;
}
if (singleAffectedBlock.isPlaced()) {
continue;
}
BlockState affectedState = singleAffectedBlock.getBlockState();
BlockPos affectedPosition = singleAffectedBlock.getBlockPos();
if (!affectedState.isOf(Blocks.CHEST) || !affectedPosition.equals(otherHalfPos)) {
Expand Down

0 comments on commit 1525271

Please sign in to comment.