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:
parent
f2474bbfa2
commit
118b89ea41
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user