Skip to content

Commit

Permalink
Fixed #329
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5734 committed Oct 19, 2024
1 parent 3b99011 commit 261a963
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
@Mixin(ClipContext.class)
public class MixinClipContext {

@ModifyArgs(method = "<init>", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/phys/shapes/CollisionContext;of(Lnet/minecraft/world/entity/Entity;)Lnet/minecraft/world/phys/shapes/CollisionContext;"))
private void banner$modifyArgs(Args args) {
@ModifyArgs(method = "<init>(Lnet/minecraft/world/phys/Vec3;Lnet/minecraft/world/phys/Vec3;Lnet/minecraft/world/level/ClipContext$Block;Lnet/minecraft/world/level/ClipContext$Fluid;Lnet/minecraft/world/entity/Entity;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/phys/shapes/CollisionContext;of(Lnet/minecraft/world/entity/Entity;)Lnet/minecraft/world/phys/shapes/CollisionContext;"))
private static void banner$modifyArgs(Args args) {
Entity entity = (Entity) args.get(0);
if (entity == null) {
args.set(0, CollisionContext.empty());
Expand Down

0 comments on commit 261a963

Please sign in to comment.