Skip to content

Commit

Permalink
Attempt to support Forge > 47.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiboo committed Feb 4, 2024
1 parent 527b04d commit df86e75
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public class EntityMixin {
* This makes collisions work properly even when {@link io.github.cadiboo.nocubes.config.NoCubesConfig.Server#tempMobCollisionsDisabled} is false.
*/
@Redirect(
method = "lambda$isInWall$8",
method = {
"lambda$isInWall$8", // Forge < 47.2
"lambda$isInWall$11", // Forge > 47.2
},
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/world/level/block/state/BlockState;getCollisionShape(Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;)Lnet/minecraft/world/phys/shapes/VoxelShape;"
Expand Down

0 comments on commit df86e75

Please sign in to comment.