Skip to content

Commit

Permalink
Also disable the ghost items rendering in recipe input slots. Resolve…
Browse files Browse the repository at this point in the history
… the fps problem.
  • Loading branch information
wendavid552 committed Aug 15, 2024
1 parent 53860ab commit cf83cca
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

}

0 comments on commit cf83cca

Please sign in to comment.