Skip to content

Commit

Permalink
Merge pull request #486 from P3pp3rF1y/1.21.x-dev
Browse files Browse the repository at this point in the history
fix: 🐛 Fixed barrels so that mobs can path over them
  • Loading branch information
P3pp3rF1y authored Sep 28, 2024
2 parents 07aee65 + 2dfe963 commit eacb97f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

0 comments on commit eacb97f

Please sign in to comment.