mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Fix missing cancellable in MixinPlayerInventory
This commit is contained in:
parent
45c38e2d22
commit
20bf598a7b
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ public abstract class MixinPlayerInventory {
|
|||
@Shadow
|
||||
public abstract ItemStack getInvStack(int int_1);
|
||||
|
||||
@Inject(method = "isUsingEffectiveTool", at = @At("HEAD"))
|
||||
@Inject(method = "isUsingEffectiveTool", at = @At("HEAD"), cancellable = true)
|
||||
public void actMiningLevel(BlockState state, CallbackInfoReturnable<Boolean> info) {
|
||||
ItemStack stack = this.getInvStack(this.selectedSlot);
|
||||
|
||||
|
@ -62,7 +62,7 @@ public abstract class MixinPlayerInventory {
|
|||
}
|
||||
}
|
||||
|
||||
@Inject(method = "getBlockBreakingSpeed", at = @At("HEAD"))
|
||||
@Inject(method = "getBlockBreakingSpeed", at = @At("HEAD"), cancellable = true)
|
||||
public void actMiningSleed(BlockState state, CallbackInfoReturnable<Float> info) {
|
||||
ItemStack stack = this.main.get(this.selectedSlot);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue