瀏覽代碼

Remove locals requirements from BlockLandingInvoker

shedaniel 4 年之前
父節點
當前提交
0eb7bd5b1e
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      common/src/main/java/me/shedaniel/architectury/mixin/BlockLandingInvoker.java

+ 1 - 2
common/src/main/java/me/shedaniel/architectury/mixin/BlockLandingInvoker.java

@@ -31,11 +31,10 @@ import org.spongepowered.asm.mixin.Mixin;
 import org.spongepowered.asm.mixin.injection.At;
 import org.spongepowered.asm.mixin.injection.Inject;
 import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
-import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
 
 @Mixin({FallingBlock.class, AnvilBlock.class, ConcretePowderBlock.class})
 public abstract class BlockLandingInvoker {
-    @Inject(method = "onLand", at = @At("RETURN"), locals = LocalCapture.CAPTURE_FAILHARD)
+    @Inject(method = "onLand", at = @At("RETURN"))
     public void handleLand(Level level, BlockPos pos, BlockState fallState, BlockState landOn, FallingBlockEntity entity, CallbackInfo ci) {
         BlockEvent.FALLING_LAND.invoker().onLand(level, pos, fallState, landOn, entity);
     }