Skip to content

Commit

Permalink
fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Bawnorton committed Jul 30, 2023
1 parent eb27f8b commit 043e205
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20+build.1
loader_version=0.14.21

# Mod Properties
mod_version=1.1.0
mod_version=1.1.1
maven_group=com.bawnorton
archives_base_name=bettertrims

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/bawnorton/mixin/LivingEntityMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@ private float modifySwimSpeed(float speed) {
@Inject(method = "getMovementSpeed()F", at = @At("RETURN"), cancellable = true)
private void modifyMovementSpeed(CallbackInfoReturnable<Float> cir) {
if(((LivingEntity) (Object) this) instanceof AbstractHorseEntity horseEntity) {
System.out.println("a");
if(horseEntity.getControllingPassenger() instanceof PlayerEntity player) {
System.out.println("b");
Wrapper<Float> increase = Wrapper.of(1f);
ArmorTrimEffects.REDSTONE.apply(player.getArmorItems(), stack -> {
System.out.println("c");
increase.set(increase.get() + Config.getInstance().redstoneMovementSpeedIncrease);
});
cir.setReturnValue(cir.getReturnValue() * increase.get());
Expand Down

0 comments on commit 043e205

Please sign in to comment.