mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
1.15 cherry pick compile fixes
This commit is contained in:
parent
32491f53dd
commit
ec432e1979
3 changed files with 2 additions and 8 deletions
fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric
impl/event/interaction
mixin/event/interaction
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1
|
@ -18,7 +18,7 @@ package net.fabricmc.fabric.impl.event.interaction;
|
|||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.network.packet.s2c.play.BlockUpdateS2CPacket;
|
||||
import net.minecraft.client.network.packet.BlockUpdateS2CPacket;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.util.ActionResult;
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ public class MixinServerPlayerInteractionManager {
|
|||
}
|
||||
}
|
||||
|
||||
@Inject(at = @At(value = "INVOKE", target = "Lnet/minecraft/block/Block;onBroken(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V"), method = "tryBreakBlock", locals = LocalCapture.CAPTURE_FAILHARD)
|
||||
@Inject(at = @At(value = "INVOKE", target = "Lnet/minecraft/block/Block;onBroken(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V"), method = "tryBreakBlock", locals = LocalCapture.CAPTURE_FAILHARD)
|
||||
private void onBlockBroken(BlockPos pos, CallbackInfoReturnable<Boolean> cir, BlockState state, BlockEntity entity, Block block, boolean b1) {
|
||||
PlayerBlockBreakEvents.AFTER.invoker().afterBlockBreak(this.world, this.player, pos, state, entity);
|
||||
}
|
||||
|
|
|
@ -85,10 +85,4 @@ public class FabricItemSettings extends Item.Settings {
|
|||
super.rarity(rarity);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FabricItemSettings fireproof() {
|
||||
super.fireproof();
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue