Skip to content

Commit

Permalink
Make REA ScreenHandlerMixin optional to avoid conflict with Pehkui
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
Su5eD committed Oct 23, 2023
1 parent 1c10c29 commit ed3e5f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loom.platform=forge
# Versions
versionMc=1.20.1
versionForge=47.1.3
versionConnectorExtras=1.4.1
versionConnectorExtras=1.4.2

# Publishing
curseForgeId=913445
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class ForgingScreenHandlerMixin extends ScreenHandler {

@ModifyConstant(
method = "method_24924(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Ljava/lang/Boolean;",
require = 1, allow = 1, constant = @Constant(doubleValue = 64.0))
require = 0, allow = 1, constant = @Constant(doubleValue = 64.0))
private double getActualReachDistance(final double reachDistance, final PlayerEntity player) {
return ReachEntityAttributes.getSquaredReachDistance(player, reachDistance);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
abstract class ScreenHandlerMixin {
@ModifyConstant(
method = "method_17696(Lnet/minecraft/block/Block;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Ljava/lang/Boolean;",
require = 1, allow = 1, constant = @Constant(doubleValue = 64.0))
require = 0, allow = 1, constant = @Constant(doubleValue = 64.0))
private static double getActualReachDistance(final double reachDistance, final Block block, final PlayerEntity player) {
return ReachEntityAttributes.getSquaredReachDistance(player, reachDistance);
}
Expand Down

0 comments on commit ed3e5f6

Please sign in to comment.