diff --git a/src/main/java/fi/dy/masa/itemscroller/mixin/MixinRecipeBookWidget.java b/src/main/java/fi/dy/masa/itemscroller/mixin/MixinRecipeBookWidget.java index d4ef82175..0ebc2e527 100644 --- a/src/main/java/fi/dy/masa/itemscroller/mixin/MixinRecipeBookWidget.java +++ b/src/main/java/fi/dy/masa/itemscroller/mixin/MixinRecipeBookWidget.java @@ -28,4 +28,14 @@ private void onUpdate(CallbackInfo ci) ci.cancel(); } } + + @Inject(method = "drawGhostSlots", at = @At("HEAD"), cancellable = true) + private void onDrawGhostSlots(CallbackInfo ci) + { + if (InventoryUtils.dontUpdateRecipeBook > 0) + { + ci.cancel(); + } + } + }