Skip to content

OpenBoatUtils crash #1582

Open
Open
@o7Moon

Description

Mod Name

OpenBoatUtils

Mod Homepage

https://github.com/o7Moon/OpenBoatUtils

Minecraft version

1.21.1

Describe the bug

crash on a mixin redirect

Steps to reproduce

  1. install neoforge (21.2.90), ffapi (107+2.0.20+1.21.1), connector (2.0.0-beta.4+1.21.1), and OpenBoatUtils (0.4.3_1.21)
  2. run minecraft

Logs

crash: https://mclo.gs/9pqynS9 debug.log: https://mclo.gs/NyOmr6b

Additional context

this is the redirect that fails:

package dev.o7moon.openboatutils.mixin;
...

@Mixin(BoatEntity.class)
public abstract class BoatMixin implements GetStepHeight {
...
  
  @Redirect(method = "getNearbySlipperiness", at = @At(value="INVOKE",target="Lnet/minecraft/block/Block;getSlipperiness()F"))
  float getFriction(Block block) {
      if (!OpenBoatUtils.enabled) return block.getSlipperiness();
      return OpenBoatUtils.getBlockSlipperiness(Registries.BLOCK.getId(block).toString());
  }
...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    1.21.xTargets Minecraft 1.21compatA mod is found to be incompatiblemixin conflictCaused by conflicting mixins

    Type

    Projects

    • Status

      🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions