Adapted AnvilMenuMixin

This commit is contained in:
Frank 2023-05-17 15:20:20 +02:00
parent 5574867fa1
commit 90342732ba

View file

@ -144,9 +144,10 @@ public abstract class AnvilMenuMixin extends ItemCombinerMenu implements AnvilSc
}
@Inject(method = "setItemName", at = @At("HEAD"), cancellable = true)
public void bcl_setNewItemName(String string, CallbackInfo info) {
public void bcl_setNewItemName(String string, CallbackInfoReturnable<Boolean> cir) {
if (bcl_currentRecipe != null) {
info.cancel();
cir.setReturnValue(false);
cir.cancel();
}
}