1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-13 19:50:31 +00:00

Fix off by one error in printout renderer

Fixes printouts being drawn slightly offset to the left in all cases,
noticeable mainly when in item frames.
This commit is contained in:
Cloud Chagnon 2022-04-28 17:42:04 +01:00 committed by Jonathan Coates
parent f2474bbfa2
commit 118b89ea41
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -86,7 +86,7 @@ public final class ItemPrintoutRenderer extends ItemMapLikeRenderer
double height = LINES_PER_PAGE * FONT_HEIGHT + Y_TEXT_MARGIN * 2;
// Non-books will be left aligned
if( !book ) width += offsetAt( pages );
if( !book ) width += offsetAt( pages - 1 );
double visualWidth = width, visualHeight = height;