Skip to content

Commit 32c46a6

Browse files
committed
Fix soul sand not being considered solid
1 parent 386c3e4 commit 32c46a6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.4.13] - 2025-12-14
10+
### Fixed
11+
- Soul Sand not being considered solid
12+
913
## [1.4.12] - 2025-12-05
1014
### Changed
1115
- Allow `updateRadius` config option to be set to higher than 2

common/src/main/java/me/drex/antixray/common/util/controller/ChunkPacketBlockControllerAntiXray.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import net.minecraft.world.level.block.state.BlockState;
2525
import net.minecraft.world.level.chunk.*;
2626
import net.minecraft.world.level.chunk.status.ChunkStatus;
27+
import net.minecraft.world.phys.shapes.CollisionContext;
2728

2829
import java.util.Set;
2930
import java.util.concurrent.ThreadLocalRandom;
@@ -373,7 +374,7 @@ public int getAsInt() {
373374
}
374375

375376
private static boolean isSolid(EmptyLevelChunk emptyChunk, BlockState blockState, boolean lavaObscures) {
376-
return (blockState.isCollisionShapeFullBlock(emptyChunk, BlockPos.ZERO) && blockState.canOcclude()) || (lavaObscures && blockState == Blocks.LAVA.defaultBlockState());
377+
return (Block.isShapeFullBlock(blockState.getVisualShape(emptyChunk, BlockPos.ZERO, CollisionContext.empty())) && blockState.canOcclude()) || (lavaObscures && blockState == Blocks.LAVA.defaultBlockState());
377378
// Comparing blockState == Blocks.LAVA.defaultBlockState() instead of blockState.getBlock() == Blocks.LAVA ensures that only "stationary lava" is used
378379
}
379380

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fabric_version=0.18.2
88
neoforged_version=21.11.6-beta
99

1010
# Mod Properties
11-
mod_version=1.4.12
11+
mod_version=1.4.13
1212
maven_group=me.drexhd
1313
archives_base_name=antixray
1414
enabled_platforms=fabric,neoforge

0 commit comments

Comments
 (0)