From 2dfe963d25c2fb30054789793e65fd250a90ade4 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 --- build.gradle | 2 +- gradle.properties | 2 +- .../p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 511698eb..c06346b5 100644 --- a/build.gradle +++ b/build.gradle @@ -183,7 +183,7 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources mod_authors : mod_authors, mod_description: mod_description, mod_display_url: mod_display_url, mod_full_version : "${project.mod_version}.${getBuildNumber()}${getStable()}", jei_version_range : jei_version_range, - sc_version :"[" + sc_version.substring(sc_version.indexOf("-") + 1, sc_version.lastIndexOf(',')) + ".+,)" + sc_version :"[" + sc_version.substring(sc_version.indexOf("-") + 1, sc_version.lastIndexOf(',')) + ",)" ] inputs.properties replaceProperties diff --git a/gradle.properties b/gradle.properties index 71fbf5c5..2ec3cd4b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ loader_version_range=[4,) mod_id=sophisticatedstorage mod_name=Sophisticated Storage mod_license=GNU General Public License v3.0 -mod_version=0.10.38 +mod_version=0.10.39 mod_group_id=sophisticatedstorage mod_authors=P3pp3rF1y, Ridanisaurus mod_description=Fancy and functional storage containers. diff --git a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java index cc1929fd..9db98ece 100644 --- a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java +++ b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/block/BarrelBlock.java @@ -29,6 +29,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; @@ -236,4 +237,9 @@ public VoxelShape getOcclusionShape(BlockState state, BlockGetter level, BlockPo public boolean useShapeForLightOcclusion(BlockState state) { return true; } + + @Override + protected boolean isPathfindable(BlockState state, PathComputationType pathComputationType) { + return false; + } }