Skip to content

Commit

Permalink
trough changes and description update
Browse files Browse the repository at this point in the history
  • Loading branch information
lumiscosity committed Jun 24, 2024
1 parent 3a3bb8a commit 74e24d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ yarn_mappings=1.21+build.2
loader_version=0.15.11

# Mod Properties
mod_version=1.0.0
mod_version=1.0.1
maven_group=com.lumiscosity.rounded
archives_base_name=rounded

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ public class TroughFallCancelMixin {
)
private void troughFallCancel(Block block, World world, BlockState state, BlockPos pos, Entity entity, float fallDistance, Operation<Void> original) {
BlockPos calc = new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ());
if ((world.getBlockState(calc).isOf(TROUGH)) && world.getBlockState(calc).get(LEVEL) == 7) {
world.playSound(null, calc, TROUGH_RUSTLE, SoundCategory.BLOCKS);
original.call(block, world, state, pos, entity, fallDistance * 0.2F);
if (world.getBlockState(calc).isOf(TROUGH)) {
if (world.getBlockState(calc).get(LEVEL) > 0) {
world.playSound(null, calc, TROUGH_RUSTLE, SoundCategory.BLOCKS);
}
if (world.getBlockState(calc).get(LEVEL) == 7) {
original.call(block, world, state, pos, entity, fallDistance * 0.2F);
} else {
original.call(block, world, state, pos, entity, fallDistance);
}
} else {
original.call(block, world, state, pos, entity, fallDistance);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "rounded",
"version": "${version}",
"name": "Rounded",
"description": "Vanilla+ features to round out the base game",
"description": "Vanilla+ additions to round out the base game",
"authors": [
"lumiscosity"
],
Expand Down

0 comments on commit 74e24d3

Please sign in to comment.