mirror of
https://github.com/FabricMC/fabric.git
synced 2025-05-10 05:10:52 -04:00
1.19.3-pre3
This commit is contained in:
parent
66f5b48542
commit
689f5e71bc
5 changed files with 24 additions and 21 deletions
fabric-events-interaction-v0/src/client/java/net/fabricmc/fabric/mixin/event/interaction/client
|
@ -72,7 +72,7 @@ public abstract class MinecraftClientMixin {
|
|||
BlockEntity be = client.world.getBlockEntity(((BlockHitResult) client.crosshairTarget).getBlockPos());
|
||||
|
||||
if (be != null) {
|
||||
stack = addBlockEntityNbt(stack, be);
|
||||
addBlockEntityNbt(stack, be);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -100,10 +100,7 @@ public abstract class MinecraftClientMixin {
|
|||
}
|
||||
|
||||
@Shadow
|
||||
public abstract void doItemPick();
|
||||
|
||||
@Shadow
|
||||
public abstract ItemStack addBlockEntityNbt(ItemStack itemStack_1, BlockEntity blockEntity_1);
|
||||
protected abstract void addBlockEntityNbt(ItemStack itemStack_1, BlockEntity blockEntity_1);
|
||||
|
||||
@ModifyVariable(at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/PlayerInventory;getSlotWithStack(Lnet/minecraft/item/ItemStack;)I", shift = At.Shift.BEFORE), method = "doItemPick", ordinal = 0)
|
||||
public ItemStack modifyItemPick(ItemStack stack) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue