From 6b74dc1bd38c5a4c42051995b6163773e0fe8fa4 Mon Sep 17 00:00:00 2001 From: P3pp3rF1y Date: Sat, 28 Sep 2024 21:10:04 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fixed=20barrels=20so=20th?= =?UTF-8?q?at=20mobs=20can=20path=20over=20them?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index d2fa8754..4213d15f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.daemon=false mod_id=sophisticatedstorage mod_group_id=sophisticatedstorage -mod_version=0.10.37 +mod_version=0.10.38 sonar_project_key=sophisticatedstorage:SophisticatedStorage github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedStorage diff --git a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java index 81acf528..578ee793 100644 --- a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java +++ b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java @@ -32,6 +32,7 @@ import net.minecraft.world.level.block.state.properties.BooleanProperty; import net.minecraft.world.level.block.state.properties.DirectionProperty; import net.minecraft.world.level.block.state.properties.WoodType; +import net.minecraft.world.level.pathfinder.PathComputationType; import net.minecraft.world.phys.BlockHitResult; import net.minecraft.world.phys.HitResult; import net.minecraft.world.phys.Vec3; @@ -244,4 +245,9 @@ public VoxelShape getOcclusionShape(BlockState pState, BlockGetter pLevel, Block public boolean useShapeForLightOcclusion(BlockState pState) { return true; } + + @Override + public boolean isPathfindable(BlockState pState, BlockGetter pLevel, BlockPos pPos, PathComputationType pType) { + return false; + } }